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:
parent
6b870e7f62
commit
3760dad8ce
@ -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 && \
|
||||
|
@ -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"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user