반응형
docs가 너무 잘되어있으니 왠만하면 Docs를 참고합시다.
https://docs.docker.com/engine/install/ubuntu/
docker install
1.
sudo apt-get remove docker docker-engine docker.io containerd runc
2.
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg
3.
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
4.
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
5.
sudo apt-get update
6.
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
컨테이너 시작 (docker run)
sudo docker run hello-world
상세
https://24hours-beginner.tistory.com/498
이미지 or 컨테이너 상세 정보 보기 (docker inspect)
docker inspect [OPTIONS] NAME|ID [NAME|ID...]
https://docs.docker.com/engine/reference/commandline/inspect/
반응형
'프로젝트 설정 > Docker' 카테고리의 다른 글
[Docker] crontab Error? 실행안됨 (feat. ubuntu) (0) | 2024.01.17 |
---|---|
[Docker] Docker run (0) | 2023.12.21 |
[Docker] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (feat. ubuntu) (0) | 2023.03.03 |
[Docker] MariaDB install 1 (feat. running container) (0) | 2023.02.21 |
[Docker] 포트 설정 (0) | 2023.02.03 |