Docker CE for Ubuntu 설치
** OS 버전(64bit): Bionic 18.04 (LTS) or Artful 17.10 or Xenial 16.04 (LTS) or Trusty 14.04 (LTS)
Install using the repository
----------------------------------------
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
----------------------------------------
Install Docker CE
----------------------------------------
$ sudo apt-get update
$ sudo apt-get install docker-ce
--- Starts automatically
--- Verify
$ sudo docker run hello-world
----------------------------------------
Docker CE for CentOS 설치
** OS 버전: CentOS 7이상Install using the repository
----------------------------------------
$ sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
----------------------------------------
Install Docker CE
----------------------------------------
$ sudo yum update
$ sudo yum install docker-ce
--- Start Docker
$ sudo systemctl start docker
--- Verify
$ sudo docker run hello-world
----------------------------------------
Configure Docker to start on boot
------------------------------------------- Enable
$ sudo systemctl enable docker
--- Disable
$ sudo systemctl disable docker
----------------------------------------
참고
댓글 없음:
댓글 쓰기
참고: 블로그의 회원만 댓글을 작성할 수 있습니다.