From 3760dad8ce4df14906c4e1f6823ca03211339f50 Mon Sep 17 00:00:00 2001 From: bingohuang Date: Fri, 12 May 2017 14:31:09 +0800 Subject: [PATCH] Update docker storage driver and registry mirrors --- Dockerfile.dind | 6 +++++- daemon.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dind b/Dockerfile.dind index 15d0d06..4aefe94 100644 --- a/Dockerfile.dind +++ b/Dockerfile.dind @@ -31,13 +31,17 @@ COPY [".vimrc",".profile", ".inputrc", ".gitconfig", "./root/"] COPY ["motd", "/etc/motd"] COPY ["daemon.json", "/etc/docker/"] -ARG docker_storage_driver=overlay2 +# ARG docker_storage_driver=overlay2 +ARG docker_storage_driver=vfs ENV DOCKER_STORAGE_DRIVER=$docker_storage_driver # Move to our home WORKDIR /root +# Add contact info +RUN echo "Happy to contact me@bingohuang.com" >> /etc/issue + # Remove IPv6 alias for localhost and start docker in the background ... CMD cat /etc/hosts >/etc/hosts.bak && \ sed 's/^::1.*//' /etc/hosts.bak > /etc/hosts && \ diff --git a/daemon.json b/daemon.json index f007534..75c6af8 100644 --- a/daemon.json +++ b/daemon.json @@ -6,5 +6,6 @@ "insecure-registries": ["127.0.0.1"], "hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"], "storage-driver": "DOCKER_STORAGE_DRIVER", - "dns": ["PWD_IP_ADDRESS", "8.8.8.8"] + "dns": ["PWD_IP_ADDRESS", "8.8.8.8"], + "registry-mirrors": ["http://34557c30.m.daocloud.io", "https://jly0jn8e.mirror.aliyuncs.com", "http://hub-mirror.c.163.com"] }