1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-13 01:02:42 +08:00

Update docker storage driver and registry mirrors

This commit is contained in:
bingohuang 2017-05-12 14:31:09 +08:00
parent 6b870e7f62
commit 3760dad8ce
2 changed files with 7 additions and 2 deletions

View File

@ -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 && \

View File

@ -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"]
}