{"action":"opened","issue":{"url":"https://api.github.com/repos/shipyard/shipyard/issues/495","labels_url":"https://api.github.com/repos/shipyard/shipyard/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/shipyard/shipyard/issues/495/comments","events_url":"https://api.github.com/repos/shipyard/shipyard/issues/495/events","html_url":"https://github.com/shipyard/shipyard/issues/495","id":68713113,"number":495,"title":"Shipyard container sometimes fails to start","user":{"login":"jankeromnes","id":599268,"avatar_url":"https://avatars.githubusercontent.com/u/599268?v=3","gravatar_id":"","url":"https://api.github.com/users/jankeromnes","html_url":"https://github.com/jankeromnes","followers_url":"https://api.github.com/users/jankeromnes/followers","following_url":"https://api.github.com/users/jankeromnes/following{/other_user}","gists_url":"https://api.github.com/users/jankeromnes/gists{/gist_id}","starred_url":"https://api.github.com/users/jankeromnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jankeromnes/subscriptions","organizations_url":"https://api.github.com/users/jankeromnes/orgs","repos_url":"https://api.github.com/users/jankeromnes/repos","events_url":"https://api.github.com/users/jankeromnes/events{/privacy}","received_events_url":"https://api.github.com/users/jankeromnes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T15:28:02Z","updated_at":"2015-04-15T15:28:02Z","closed_at":null,"body":"It looks like there is a race condition if you quickly install the shipyard containers in sequence:\r\n\r\n    sudo docker run -it -d --name shipyard-rethinkdb-data --entrypoint /bin/bash shipyard/rethinkdb -l\r\n    sudo docker run -it -d --name shipyard-rethinkdb --volumes-from shipyard-rethinkdb-data shipyard/rethinkdb\r\n    sudo docker run -it -d --name shipyard -p 127.0.0.1:8080:8080 --link shipyard-rethinkdb:rethinkdb shipyard/shipyard\r\n\r\nRight after this, `sudo docker ps` gives:\r\n\r\n    CONTAINER ID        IMAGE                       COMMAND                CREATED             STATUS              PORTS                            NAMES\r\n    18f83687c035        shipyard/rethinkdb:latest   \"/usr/bin/rethinkdb    24 minutes ago      Up 7 seconds        29015/tcp, 8080/tcp, 28015/tcp   shipyard-rethinkdb        \r\n    ce62b27d6ed6        shipyard/rethinkdb:latest   \"/bin/bash -l\"         24 minutes ago      Up 7 seconds        28015/tcp, 29015/tcp, 8080/tcp   shipyard-rethinkdb-data\r\n\r\nWith `sudo docker ps -a`, you can see that the shipyard stopped almost instantly:\r\n\r\n    84c083587d3c        shipyard/shipyard:2.0.10    \"/controller\"          28 minutes ago      Exited (1) 3 minutes ago                                    shipyard\r\n\r\nDoing `sudo docker logs shipyard` gives:\r\n\r\n    INFO[0000] shipyard version 2.0.10                      \r\n    INFO[0000] checking database                            \r\n    FATA[0000] error creating table: gorethink: Table `shipyard.config` already exists. in: \r\nr.Db(\"shipyard\").TableCreate(\"config\")\r\n\r\nIt is possible to restart the Shipyard container with `sudo docker start shipyard`, but this problem is annoying when trying to automate a Shipyard installation."}}