Skip to content

Commit

Permalink
Add socat to docker installs
Browse files Browse the repository at this point in the history
Because kubectl port-forward needs it when using docker-shim.

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Jan 18, 2022
1 parent 4aca229 commit 0ad9bba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions genapkovl-lima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ if [ "${LIMA_INSTALL_DOCKER}" == "true" ]; then
echo docker-openrc >> "$tmp"/etc/apk/world
echo docker-cli >> "$tmp"/etc/apk/world
echo docker >> "$tmp"/etc/apk/world

# kubectl port-forward requires `socat` when using docker-shim
echo socat >> "$tmp"/etc/apk/world
fi

if [ "${LIMA_INSTALL_BINFMT_MISC}" == "true" ]; then
Expand Down
1 change: 1 addition & 0 deletions mkimg.lima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ profile_lima() {
if [ "${LIMA_INSTALL_DOCKER}" == "true" ]; then
apks="$apks libseccomp runc containerd tini-static device-mapper-libs"
apks="$apks docker-engine docker-openrc docker-cli docker"
apks="$apks socat"
fi
if [ "${LIMA_INSTALL_LIMA_INIT}" == "true" ]; then
apks="$apks e2fsprogs lsblk sfdisk shadow sudo udev"
Expand Down

0 comments on commit 0ad9bba

Please sign in to comment.