YJWANG

[Ubuntu 20.04] Install Docker 본문

60.Cloud/70.Docker

[Ubuntu 20.04] Install Docker

왕영주 2021. 4. 28. 10:35

References


https://docs.docker.com/engine/install/ubuntu/

 

Installation


uninstall old version

root@devops-server:~# apt-get remove docker docker-engine docker.io containerd runc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package docker-engine

install docker

root@devops-server:~# curl -fsSL https://get.docker.com -o get-docker.sh

### 'get-docker.sh' script install docker automatically on your system
root@devops-server:~# sh get-docker.sh

enable docker service

root@devops-server:~# systemctl enable docker --now
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
반응형