Skip to content

mmkarim/docker_cheat_sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Docker Cheat Sheet

$ docker ps 
$ docker ps -a
$ docker start [option] [container]
$ docker stop [option] [container]
$ docker run redis
$ docker run -it redis command
$ docker run -it -p 3000:3000 CONTAINER_ID
$ docker build . 
$ docker build -t docker_username/given_name:latest .
$ docker build -f file_name .
$ docker exec -it 1b37197a2807 redis-cli
$ docker-compose up --build
$ docker-compose up -d => run in background
$ docker-compose down
$ docker-compose ps

$ docker-compose -f docker-compose-dev.yml up --build

docker logs

$ docker logs container_id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published