ewolff / microservice

Sample of a Microservice setup for my book. Based on Spring Cloud / Netflix / Java / Docker / Docker Compose / Docker Machine / Vagrant
Apache License 2.0
725 stars 352 forks source link

vagrant and docker #10

Closed normoes closed 8 years ago

normoes commented 8 years ago

Hi,

I tried to do what you did, but failed on the following command: vagrant provision

The problem is, that vagrant says:

The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

      rm -f /var/lib/vagrant/cids/9ecc8459ea5f39f9da55cb4d71a70b5d1e0f0b80
      docker run --cidfile=/var/lib/vagrant/cids/9ecc8459ea5f39f9da55cb4d71a70b5d1e0f0b80 -d --name frontend --restart=always -p 8090:8090 -v /frontend:/frontend frontend

Stdout from the command:

Stderr from the command:

stdin: is not a tty docker: Error response from daemon: Conflict. The name "/frontend" is already in use by container e3ae5840fdda3a5532ccbf5c6e26cf69069053997d45ea1a8f94addd56710f47. You have to remove (or rename) that container to be able to reuse that name.. See 'docker run --help'.

Vagrant removes the cid, bu des not remove the named container. Do you know why?

ewolff commented 8 years ago

I did the following:

So I am not sure why you see the problem mentioned above. I have clarified the documentation and will close the issue because I cannot reproduce it. Please reopen if the problem persists.