Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Run docker

docker run -p 27017:27017 --name mongodb-server -d thachit/mongodb

Commit container to image

docker commit -m "Build Database Server" -a "Thach Nguyen" (container id) thachit/mongodb

Push image to docker hub

docker push thachit/mongodb

Get IP of docker

docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mongodb-server

Docker Pull Command
Owner
thachit