전체 페이지뷰

2020년 1월 4일 토요일

install docker container

if you use the os centos and don't think about inner process 
just write the follow the line
$ su - root
$ curl -fsSL https://get.docker.com/ | sudo sh
if you encounter this message "cannot connect to the docker daemon at //var/run/docker.sock. 
is the docker daemon running?"  you didn't start the docker daemon.
$ sudo systemctl start docker
$ sudo systemctl enable docker

otherwise, you read the website 
https://docs.docker.com/install/linux/docker-ce/centos/
followed added lines are parts of website
  1. $ sudo yum install /path/to/package.rpm
    
    Docker is installed but not started. The docker group is created, but no users are added to the group.
  2. Start Docker.
    $ sudo systemctl start docker
    
  3. Verify that Docker Engine - Community is installed correctly by running the hello-world image.
    $ sudo docker run hello-world
https://docs.docker.com/docker-for-windows/
https://docs.docker.com/docker-for-mac/

댓글 없음:

댓글 쓰기