Skip to content

CodeCraft Hub

Docker generic machine

DevOps1 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 생성하기

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 rundocker: Error response from daemon: Get 에러날 경우

pull 시 Attempting next endpoint for pull after error: Get dial tcp: lookup 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

© 2024 by CodeCraft Hub. All rights reserved.
Powered by Gatsby