Skip to content

preet-tech89/Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Docker Commands

#commands

Remove single container--> docker container rm CONTAINER

Stop all the containers--> docker container stop $(docker container ls -aq)

Remove all the containers--> docker container rm $(docker container ls -aq)

create docker network

docker network create mongo-network

start mongo db

docker run -d
-p 27017:27017
-e MONGO_INITDB_ROOT_USERNAME=admin
-e MONGO_INITDB_ROOT_PASSWORD=password
--name mongodb
--net mongo-network
mongo

#start mongo-express docker run -d
-p 8081:8081
-e ME_CONFIG_MONGODB_ADMINUSERNAME=admin
-e ME_CONFIG_MONGODB_ADMINPASSWORD=password
-e ME_CONFIG_MONGODB_SERVER=mongodb
--net mongo-network
--name mongoexpress
mongo-express

minikube win 10

minikube start --vm-driver hyperv --hyperv-virtual-switch "Primary Virtual Switch"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published