728x90
실행환경
Ubuntu 22.04
1. apt repository set up
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
2. install the Docker packages
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
3. Verify that the Docker Engine
sudo docker run hello-world
4. Uninstall Docker Engine
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
Reference
728x90
'Docker' 카테고리의 다른 글
[Docker] NGINX란? Docker와 FastAPI를 활용한 서버 구축 실습 (6) | 2024.11.17 |
---|---|
Docker를 이용한 ChromaDB와 데이터 생성 컨테이너 연동하기 (2) | 2024.11.15 |
[Docker] Zookeeper와 Kafka 설치 및 연동 가이드: Docker Compose로 간편하게 설정하기 (0) | 2024.11.10 |
[Docker] Docker와 PostgreSQL을 이용한 데이터 생성 시스템 구축하기 (2) | 2024.10.06 |
[Docker] DockerFile 명령어 정리: ADD, COPY, CMD, ENTRYPOINT, ARG, ENV 등 (6) | 2024.09.25 |