I am using nerdctl
as docker desktop alternative
I am facing the following error while running nerdctl compose up
Unable to create a container (name "v2_mongo_1” is already used by ID"asdfasdfadfa"). with nerdctl
I have check with nerdctl ps -a
, there are no containers running, so am not able to find out how to get rid of this error.
mongo:
image: 'mongo:4.2.3-bionic'
ports:
- '27017:27017'
volumes:
- ./mongod.conf:/etc/mongod.conf
- ./mongo-init-local-replicaset.sh:/etc/mongo-init-local-replicaset.sh:default
- ./docker/mongo:/data/db
entrypoint: ["mongod","-f","/etc/mongod.conf"]
healthcheck:
test: ["CMD", "/etc/mongo-init-local-replicaset.sh"]
start_period: 3s