# download & install
curl -s https://get.docker.com/ | sudo sh
# user권한 추가
sudo usermod -aG docker [username]
# docker service start
sudo service docker start
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
sudo service docker start
docker ps
docker ps -a
docker rm [container id]
docker rm [container id], [container id], ...
docker images
docker rmi [image id]
docker rmi -f [image id]
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
docker exec -it [container id] /bin/sh
# example
docker build -t flask-api/text-generater:v1 .
# example
docker run -d -p 8095:8095 flask-api/text-generater:v1
# example
docker tag ghost:latest jaehyeong/ghost_blog:test
# example
docker push jaehyeong/ghost_blog:test
# example
docker pull jaehyeong/ghost_blog:test