yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

ERROR: for git Conflict. The name "/foo" is already in use by container #32

Closed katopz closed 8 years ago

katopz commented 8 years ago

When reboot my Mac and I run

$ APP_ID=foo MASTER_KEY=bar docker-compose up -d

I got

Starting katopz_parse-cloud-code_1
Starting katopz_mongo-data_1
Starting katopz_mongo_1
Starting katopz_parse-server_1
Starting katopz_parse-dashboard_1
Creating katopz_git_1

ERROR: for git  Conflict. The name "/katopz_git_1" is already in use by container 408a1f842001b60eb64e0e8e3408dd57588bab8ebbe6570a02675a84029b157c. You have to remove (or rename) that container to be able to reuse that name.

I think it's not quite right because it should Starting instead of Creating there. So I've to start it manually as workaround for now. Any thought?

Thanks

yongjhih commented 8 years ago

Your docker stack has been running, must stop these container before start up by the following command:

docker-compose down
katopz commented 8 years ago

I got

$ docker-compose down

Stopping katopz_parse-dashboard_1 ... done
Stopping katopz_parse-server_1 ... done
Stopping katopz_mongo_1 ... done
Removing katopz_parse-dashboard_1 ... done
Removing katopz_parse-server_1 ... done
Removing katopz_mongo_1 ... done
Removing katopz_mongo-data_1 ... done
Removing katopz_parse-cloud-code_1 ... done

and then up

Creating katopz_parse-cloud-code_1
Creating katopz_mongo-data_1
Creating katopz_mongo_1
Creating katopz_parse-server_1
Creating katopz_git_1
Creating katopz_parse-dashboard_1

ERROR: for git  Conflict. The name "/katopz_git_1" is already in use by container 408a1f842001b60eb64e0e8e3408dd57588bab8ebbe6570a02675a84029b157c. You have to remove (or rename) that container to be able to reuse that name.

katopz_git_1 is not start, no log katopz_mongo-data_1 is not start and get this in log.

Error parsing command line: unrecognised option '--break-mongo'
try 'mongod --help' for more information

BTW, If this only me you can skip this, No worry.

Thanks

yongjhih commented 8 years ago

How about output of this command?

docker ps
katopz commented 8 years ago

Here it is

$ docker-compose down
Stopping katopz_parse-dashboard_1 ... done
Stopping katopz_parse-server_1 ... done
Stopping katopz_mongo_1 ... done
Removing katopz_parse-dashboard_1 ... done
Removing katopz_parse-server_1 ... done
Removing katopz_mongo_1 ... done
Removing katopz_mongo-data_1 ... done
Removing katopz_parse-cloud-code_1 ... done

$ docker ps
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS                  NAMES
408a1f842001        yongjhih/parse-server:git   "/docker-entrypoint.s"   20 hours ago        Up 8 minutes        0.0.0.0:2022->22/tcp   katopz_git_1

and up

Creating katopz_parse-cloud-code_1
Creating katopz_mongo-data_1
Creating katopz_mongo_1
Creating katopz_parse-server_1
Creating katopz_parse-dashboard_1
Creating katopz_git_1

ERROR: for git  Conflict. The name "/katopz_git_1" is already in use by container 408a1f842001b60eb64e0e8e3408dd57588bab8ebbe6570a02675a84029b157c. You have to remove (or rename) that container to be able to reuse that name.

$ docker ps
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS                      NAMES
e147b93b2249        yongjhih/parse-dashboard    "npm run dashboard"      4 seconds ago       Up 3 seconds        0.0.0.0:4040->4040/tcp     katopz_parse-dashboard_1
49a40db65429        yongjhih/parse-server       "npm start"              4 seconds ago       Up 3 seconds        0.0.0.0:1337->1337/tcp     katopz_parse-server_1
a61dcea41608        mongo                       "/entrypoint.sh --sma"   5 seconds ago       Up 4 seconds        0.0.0.0:27017->27017/tcp   katopz_mongo_1
408a1f842001        yongjhih/parse-server:git   "/docker-entrypoint.s"   20 hours ago        Up 10 minutes       0.0.0.0:2022->22/tcp       katopz_git_1

Thanks!

yongjhih commented 8 years ago
docker-compose down
docker stop  katopz_git_1 && docker rm katopz_git_1
docker-compose up
katopz commented 8 years ago

Oh cool. Working now. What's causing this? I mess up some step there maybe? PS : You can close this issue now, sorry for bother. Many thanks for great support!

yongjhih commented 8 years ago

I think you did not docker-compose down before docker compose up again