우분투 리눅스에서 도커(Docker)사용을 위한 기본 명령어
도커(docker)설치
curl -fsSL https://get.docker.com/ | sudo sh
sudo usermod -aG docker <USERNAME>
docker pull ubuntu:latest
docker images
docker run ubuntu:latest
docker build
docker ps
docker restart
docker stop ee2c83948029
docker rm <CONTAINER ID>
docker rm $(docker ps -a -q)
docker rmi <IMAGE>
docker rmi $(docker images -q)
docker container inspect <CONTAINER ID>
docker volume ls
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose