docker basic commands

docker pull

docker run

docker ps , docker ps -a

docker exec

docker attach

docker start

docker stop

docker pull tải về docker image

docker pull nginx:alpine
docker pull postgres:alpine

docker build để tạo ra image
sẽ nói ở bài sau

https://hub.docker.com/

docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
docker run --rm hell-world
docker run -it --rm alpine:latest
docker run --name webbox -p 80:80 -d nginx:alpine
docker run -d --name some-ghost -p 80:2368 ghost:alpine

docker-run-exec-attach-start-stop

By Trinh Minh Cuong

docker-run-exec-attach-start-stop

  • 1,169