Skip to content

Commit

Permalink
Merge pull request #18 from theohbrothers/fix/docker-fix-docker-varia…
Browse files Browse the repository at this point in the history
…nts-to-cleanup-var-run-docker.pid-when-container-is-stopped-and-started

Fix (docker): Fix `docker` variants to cleanup `/var/run/docker.pid` when container is stopped and started
  • Loading branch information
leojonathanoh authored Dec 28, 2022
2 parents 7a3d0b7 + da860ae commit 6a18998
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions generate/templates/docker-entrypoint.sh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if ($VARIANT['_metadata']['base_tag']) {
if ($c -eq 'docker') {
@'
echo "Starting dockerd"
sudo rm -fv /var/run/docker.pid
sudo dockerd &
'@
Expand Down
1 change: 1 addition & 0 deletions variants/v4.6.1-docker-alpine-3.15/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
set -eu
echo "Starting dockerd"
sudo rm -fv /var/run/docker.pid
sudo dockerd &
echo "Starting code-server"
exec code-server --bind-addr 0.0.0.0:8080 --disable-telemetry --disable-update-check
1 change: 1 addition & 0 deletions variants/v4.7.1-docker-alpine-3.15/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
set -eu
echo "Starting dockerd"
sudo rm -fv /var/run/docker.pid
sudo dockerd &
echo "Starting code-server"
exec code-server --bind-addr 0.0.0.0:8080 --disable-telemetry --disable-update-check
1 change: 1 addition & 0 deletions variants/v4.8.3-docker-alpine-3.15/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
set -eu
echo "Starting dockerd"
sudo rm -fv /var/run/docker.pid
sudo dockerd &
echo "Starting code-server"
exec code-server --bind-addr 0.0.0.0:8080 --disable-telemetry --disable-update-check
1 change: 1 addition & 0 deletions variants/v4.9.1-docker-alpine-3.15/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
set -eu
echo "Starting dockerd"
sudo rm -fv /var/run/docker.pid
sudo dockerd &
echo "Starting code-server"
exec code-server --bind-addr 0.0.0.0:8080 --disable-telemetry --disable-update-check

0 comments on commit 6a18998

Please sign in to comment.