
Key difference here is the ip_wrapper.py file. This file and docker 1.7 allow for the network namespaces to be created in the host mount namespace and propogated into the containers. Co-Authored-By: Paul Bourke <paul.bourke@oracle.com> Change-Id: I73bcd1c97bbaf742af883dbf281a8d76aff8aebf
13 lines
365 B
Bash
13 lines
365 B
Bash
#!/bin/bash
|
|
|
|
# Neutron uses rootwrap which requires a tty for sudo.
|
|
# Since the container is running in daemon mode, a tty
|
|
# is not present and requiretty must be commented out.
|
|
if [ ! -f /var/run/sudo-modified ]; then
|
|
chmod 0640 /etc/sudoers
|
|
sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers
|
|
chmod 0440 /etc/sudoers
|
|
fi
|
|
|
|
touch /var/run/sudo-modified
|