Skip to content

Commit

Permalink
Merge pull request jpetazzo#52 from XD-embedded/keep-unix-socket
Browse files Browse the repository at this point in the history
Keep /var/run/docker.sock when PORT is specified
  • Loading branch information
Jérôme Petazzoni committed Feb 26, 2015
2 parents 1a4e381 + b0e5720 commit 7c7effa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrapdocker
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ rm -rf /var/run/docker.pid
# otherwise, spawn a shell as well
if [ "$PORT" ]
then
exec docker -d -H 0.0.0.0:$PORT $DOCKER_DAEMON_ARGS
exec docker -d -H 0.0.0.0:$PORT -H unix://var/run/docker.sock \
$DOCKER_DAEMON_ARGS
else
if [ "$LOG" == "file" ]
then
Expand Down

0 comments on commit 7c7effa

Please sign in to comment.