Docker generic machine
— DevOps — 1 min read
...check points on create
- setting SSH-key login
- add user as sudoer
- add user group 'docker'
- running Docker
- iptables setting (firewall)
- create docker-machine w/o devicemapper above version 18
Docker generic machine 생성하기
tutorial
another tutorial
CentOS tutorial
Remote 머신에 user 생성
user must have sudo
access without asking for password
user must have netstat access.
By default docker-machine uses port 2376
to communicate with docker daemons. Of course we need to open this port on the remote server:
iptables in ubuntu 관련 참조 iptables in centos 관련 참조
firewall setting on CentOS
opening port
Very important for below v18, the --engine-storage-driver devicemapper configuration:
docker run
시 docker: Error response from daemon: Get https://registry-1.docker.io/v2/
에러날 경우
pull 시 Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:38109->[::1]:53: read: connection refused"
에러일 경우
docker version
정보에서 server 정보가 보이지 않고 Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
에러 날때
add user to 'docker' group