User Tools

Site Tools


wiki:tech:docker-daemon

http://books.sonatype.com/nexus-book/3.0/reference/security.html#ssl-inbound

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

{
    "insecure-registries":[
        "docker-registry.example.com:8001"
    ],
    "hosts":[
        "unix:///var/run/docker.sock",
        "tcp://0.0.0.0:2375"
    ]
}

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

# https://github.com/docker/docker/issues/9889#issuecomment-109766580
#EnvironmentFile=-/etc/default/docker
#ExecStart=/usr/bin/docker -d $DOCKER_OPTS -H fd://
 
#ExecStart=/usr/bin/dockerd -H fd://
 
# https://github.com/docker/docker/issues/9889#issuecomment-242172606
#ExecStartPre=/bin/sh -c ". /etc/default/docker && /bin/systemctl set-environment DOCKER_OPTS=\"$DOCKER_OPTS\""
#ExecStart=
#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