1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00

Added a workaround for Docker's inability to modify /etc/hosts in the container.

See Docker bug 2267: https://github.com/dotcloud/docker/issues/2267
This commit is contained in:
Hongli Lai (Phusion)
2014-07-13 00:48:21 +02:00
parent 291b9aae02
commit 1f38e2226e
5 changed files with 39 additions and 2 deletions

View File

@@ -30,6 +30,12 @@ ln -sf /bin/true /sbin/initctl
dpkg-divert --local --rename --add /usr/bin/ischroot
ln -sf /bin/true /usr/bin/ischroot
## Workaround https://github.com/dotcloud/docker/issues/2267,
## not being able to modify /etc/hosts.
mkdir -p /etc/workaround-docker-2267
ln -s /etc/workaround-docker-2267 /cte
cp /build/bin/workaround-docker-2267 /usr/bin/
## Install HTTPS support for APT.
$minimal_apt_get_install apt-transport-https ca-certificates