User Tools

Site Tools


How to build an image with custom name without using yml file: docker build -t image_name .

How to run a container with custom name: docker run -d –name container_name image_name


debian config sample /lib/systemd/system/docker.service

#ExecStart=/usr/bin/docker -d $DOCKER_OPTS -H fd://
#ExecStart=/usr/bin/dockerd -H fd://
#ExecStartPre=/bin/sh -c ". /etc/default/docker && /bin/systemctl set-environment DOCKER_OPTS=\"$DOCKER_OPTS\""
#ExecStart=/usr/bin/dockerd -d $DOCKER_OPTS -H fd://
ExecStart=/usr/bin/dockerd --tlsverify --tlscacert=/etc/docker/tls/ca.pem --tlscert=/etc/docker/tls/server-cert.pem --tlskey=/etc/docker/tls/server-key.pem

example windows command to connect TLS secured docker daemon:

docker.exe -H hocker-host –tlsverify –tlscacert=C:\Users\user1\.docker\ca-docker.pem –tlscert=C:\Users\user1\.docker\cert-docker.pem –tlskey=C:\Users\konstantin.lychagin\.docker\key-docker.pem

wiki/tech/docker-daemon.txt · Last modified: 2017/06/22 02:12 by theroot

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki