중고 신입이 개발해보기..

ubuntu에 docker를 설치 해보자. 본문

Back-End /Docker&k8s

ubuntu에 docker를 설치 해보자.

rootkaien 2024. 12. 16. 18:21

 

우분투에 도커설치는 정보가 많아서.. 검색하면 쉽게 알수 있다.. 

순서되로 실행하면 설치가 완료된다. 


$ sudo apt-get update

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

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

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


$ sudo apt-get install docker-ce docker-ce-cli containerd.io  docker-buildx-plugin docker-compose-plugin

 

$ sudo docker version
Client: Docker Engine - Community
 Version:           27.4.0
 API version:       1.47
 Go version:        go1.22.10
 Git commit:        bde2b89
 Built:             Sat Dec  7 10:38:55 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.4.0
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.10
  Git commit:       92a8393
  Built:            Sat Dec  7 10:38:55 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.24
  GitCommit:        88bf19b2105c8b17560993bee28a01ddc2f97182
 runc:
  Version:          1.2.2
  GitCommit:        v1.2.2-0-g7cb3632
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

 

매번 실행시 sudo를 칠순 없으니 

$ sudo usermod -aG docker ${우분투ID}

실행 후 재부팅해야된다. 

 

'Back-End > Docker&k8s' 카테고리의 다른 글

Mac Docker 다시 설치하기  (0) 2021.11.16
쿠버네티스 기본 정리 해보자.  (0) 2021.09.07
간단) Docker로 mysql설치  (0) 2019.03.19
Comments