Skip to content

Commit 426fbce

Browse files
Gabriel MonroyMatthew Fisher
authored andcommitted
fix(boot): only remove docker.sock if it exists
1 parent 01f2225 commit 426fbce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builder/bin/boot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ until confd -onetime -node $ETCD -config-file /app/confd.toml; do
3232
done
3333

3434
# remove any pre-existing docker.sock
35-
rm -f /var/run/docker.sock
35+
test -e /var/run/run/docker.sock && rm -f /var/run/docker.sock
3636

3737
# spawn a docker daemon to run builds
3838
docker -d &
@@ -68,7 +68,7 @@ if [[ ! -z $PUBLISH ]]; then
6868

6969
# configure service discovery
7070
HOST=${HOST:-localhost}
71-
PORT=${PORT:-22}
71+
PORT=${PORT:-2222}
7272
PROTO=${PROTO:-tcp}
7373

7474
# wait for the service to become available on PUBLISH port

0 commit comments

Comments
 (0)