7 lines
168 B
Bash
7 lines
168 B
Bash
docker run --detach /
|
|
--name mongo \
|
|
-p 27017:27017 \
|
|
-e MONGO_INITDB_ROOT_USERNAME=c2a \
|
|
-e MONGO_INITDB_ROOT_PASSWORD=admin \
|
|
--restart unless-stopped \
|
|
mongo |