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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user