docker - Container cannot be started from bootlocal.sh -


running boot2docker 1.5.0 under windows. container gastrobase exists , can started manually docker start gastrobase.

when put command /var/lib/boot2docker/bootlocal.sh, upon startup

post http:///var/run/docker.sock/v1.17/containers/gastrobase/start: dial unix /var/run/docker.sock: no such file or directory. trying connect tls-enabled daemon without tls? time="2015-03-28t19:50:51z" level="fatal" msg="error: failed start 1 or more containers" in var/log/bootlocal.log.

running ./bootlocal.sh manually starts ok.

i have tried sudo-variant, according thread in wrong choice boot2docker.

this proved racing condition: following in bootlocal.sh startup works

sleep 1 docker start gastrobase

romansaveljev suggested

docker run --restart=always --name gastrobase

instead.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -