본문 바로가기
Linux

Docker & Docker compose 설치

by Wanado 2023. 1. 11.
728x90

 

**2024 최신 업그레이드

실행환경

  • Ubuntu 22.04

Docker 설치방법

 

1. 우분투 시스템 패키지 업데이트

sudo apt-get update

2. 필요한 패키지 설치

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

 

3. Docker의 공식 GPG키를 추가

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg

 

4. Docker의 공식 apt 저장소를 추가

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

 

5. 시스템 패키지 업데이트

sudo apt-get update

6. Docker 설치

sudo apt-get install docker-ce docker-ce-cli containerd.io

 

7. Docker가 설치 확인

7-1 도커 실행상태 확인

sudo systemctl status docker

7-2 도커 실행

sudo docker run hello-world

 

======================

 

https://mangkyu.tistory.com/196

 

[Docker] Linux 서버에 Docker와 Docker Compose 설치 및 Docker 명령어

예전부터 Docker와 Docker Compose를 설치하기 위한 포스팅을 올리려고 했지만 미루다가 Docker Compose로 ELK 구축 관련하는 포스팅을 작성하기 위해 Docker 설치 관련 내용을 작성하게 되었습니다. Docker에

mangkyu.tistory.com

 

도커데스크탑 Docker Desktop 설치

https://velog.io/@denver_almighty/Linux-Ubuntu-22.04-%EC%97%90-Docker-Desktop-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0%EC%B6%94%EA%B0%80%EC%84%A4%EC%B2%AD


**안될시 참고*****

 

Re: Docker Desktop won't install

 

[SOLVED] Docker Desktop won't install - Linux Mint Forums

Questions about applications and software Forum rules Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation. craig100 Level 3 Posts: 109 Joined: Mon Nov 07, 2011 1:37 pm Location: Slough, UK Post

forums.linuxmint.com

Post by spamegg » Wed Oct 26, 2022 12:47 pm

That's fine, amd64 is the generic name for 64-bit processors. (Intel holds the rights for 32-bit x86 and AMD holds it for 64-bit x64 and they license it to each other.)

It looks like your Step 1 "Set-up Docker's package repository" did not succeed. Because it's not showing up in your inxi report under repositories.

I think I might know the reason. The instructions are using lsb_release which gives a different result on Mint (vanessa) than it does on Ubuntu (jammy).

Can you re-do Step 1 https://docs.docker.com/engine/install/ ... repository but instead, use this command:

CODE: SELECT ALL

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  jammy stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
and then continue with the rest of Step 1, and continue with Steps 2 and 3. This way you'll be able to receive the docker-ce-cli package correctly.

 

기존 도커 삭제

https://may9noy.tistory.com/392

 

Docker - 도커를 완전히 제거하는 방법 (docker & 이미지)

# Docker를 완전히 제거하는 방법 1. docker 가 설치되어 있는지 확인한다. dpkg -l | grep -i docker 2. docker를 삭제한다. sudo apt-get purge -y docker-engine docker docker.io docker-ce sudo apt-get autoremove -y --purge docker-engine

may9noy.tistory.com

 

728x90

'Linux' 카테고리의 다른 글

윈도우에 리눅스 환경설치  (1) 2024.10.17
쉘 스크립트 작성  (0) 2023.02.08
linux 내 여러 프로그램 설치  (0) 2023.01.11
VMware Linux 인터넷 연결 (feat.Network)  (0) 2023.01.10
shell script란  (0) 2023.01.10