728x90
반응형
1. docker doc 확인
https://docs.docker.com/engine/install/ubuntu/
Install Docker Engine on Ubuntu
docs.docker.com
* 우분투 커널에서 버전 및 비트 확인
- lsb_release -a
- getconf LONG_BIT
환경이 맞다면 doc문서에 있는 순서대로 명령어를 입력하여 설치하면 된다.
- Dokcer repository 설치 및 세팅(Docker 엔진 설치전)
1. apt package index를 업데이트 하고 HTTPS를 통해 repository 를 이용하기 위해 pakcage 들을 설치 해줍니다.
- sudo apt update
- sudo apt install \ ca-certificates \ curl \ gnupg \ lsb-release
2. Docker의 official GPG KEY 등록
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
3. stable repositiory 등록
- echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Docker 엔진 설치
- sudo apt update
- sudo apt install docker-ce docker-ce-cli containerd.io
- Docker 시스템 확인하기
- docker
( options, commands 등등 정보가 출력되면 설치완료)
728x90
반응형
'프로그래밍 > 리눅스' 카테고리의 다른 글
윈도우에서 우분투에 원격 데스크톱 접속하기 (1) | 2022.03.15 |
---|---|
[docker] Docker hub에서 이미지 검색 및 내려받기 (pull) (0) | 2022.03.15 |
[리눅스마스터] 2022년 리눅스마스터 2급 시험일정 정리 및 차수별 범위 (0) | 2022.01.02 |
[리눅스마스터] 2022년 리눅스마스터 2급 시험일정 정리 및 차수별 범위 (0) | 2022.01.02 |