| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- memory bank
- Anaconda
- deeprl
- Linux
- multimodal machine learning
- transference
- Python
- hackerrank
- 코딩테스트
- Github
- error
- 백준
- quantification
- Kaggle
- CS285
- Server
- jmeter
- vision-language-action
- 용어
- CNN
- Reinforcement Learning
- MySQL
- tensorflow
- autogluon
- ma-lmm
- sliding video q-former
- leetcode
- Artificial Intelligence
- long video understanding
- LeNet-5
Archives
- Today
- Total
반응형
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- memory bank
- Anaconda
- deeprl
- Linux
- multimodal machine learning
- transference
- Python
- hackerrank
- 코딩테스트
- Github
- error
- 백준
- quantification
- Kaggle
- CS285
- Server
- jmeter
- vision-language-action
- 용어
- CNN
- Reinforcement Learning
- MySQL
- tensorflow
- autogluon
- ma-lmm
- sliding video q-former
- leetcode
- Artificial Intelligence
- long video understanding
- LeNet-5
Archives
- Today
- Total
Juni_DEV
Docker Setting - 완전히 삭제 후 재설치 본문
반응형
Docker 설정을 처음부터 다시 깨끗하게 하려면, 기존 Docker 및 Docker Compose를 완전히 삭제한 후 최신 버전으로 재설치하면 됩니다. 아래는 Ubuntu (20.04, 22.04 등) 기준 튜토리얼입니다.
1. 기존 Docker 완전 제거
sudo systemctl stop docker
sudo apt-get purge -y docker docker-engine docker.io containerd runc
sudo apt-get autoremove -y
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
sudo rm /usr/local/bin/docker-compose
2. Docker 재설치
(1) 의존성 설치
sudo apt update
sudo apt install -y ca-certificates curl gnupg lsb-release
(2) Docker GPG 키 추가
sudo mkdir -p /etc/apt/keyrings
curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | \\
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
(3) Docker 공식 저장소 등록
echo \\
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \\
<https://download.docker.com/linux/ubuntu> \\
$(lsb_release -cs) stable" | \\
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
(4) Docker 설치
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
3. Docker Compose v2 확인
docker compose version
정상 출력 :
Docker Compose version v2.36.2
4. Docker 명령어에 sudo 없이 사용하기 (선택)
sudo usermod -aG docker $USER
newgrp docker
5. 설치 확인 및 테스트
docker --version
docker compose version
docker run hello-world
출력 :
Docker version 28.2.1, build 879ac3f
Docker Compose version v2.36.2
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
<https://hub.docker.com/>
For more examples and ideas, visit:
<https://docs.docker.com/get-started/>
반응형
'etc > Server' 카테고리의 다른 글
| Htop 사용법 (0) | 2019.09.07 |
|---|---|
| 리눅스에서 CPU/RAM 사양 확인하기 (0) | 2019.08.24 |
| VMWare, Ubuntu 다운로드 (+가상화 에러 해결) (0) | 2019.06.18 |
| Nginx 설치 (0) | 2019.06.08 |
Comments