Merge pull request #30 from scmcoord/docker-on-centos-7
Allow centos 7 image to run docker.
This commit is contained in:
commit
1aee834070
1 changed files with 7 additions and 1 deletions
|
@ -28,7 +28,7 @@ lxc.hook.clone = /usr/share/lxc/hooks/clonehostname
|
||||||
# lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed)
|
# lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed)
|
||||||
# lxc.cap.drop = audit_write
|
# lxc.cap.drop = audit_write
|
||||||
#
|
#
|
||||||
lxc.cap.drop = mac_admin mac_override setfcap setpcap
|
lxc.cap.drop = mac_admin mac_override
|
||||||
lxc.cap.drop = sys_module sys_nice sys_pacct
|
lxc.cap.drop = sys_module sys_nice sys_pacct
|
||||||
lxc.cap.drop = sys_rawio sys_time
|
lxc.cap.drop = sys_rawio sys_time
|
||||||
|
|
||||||
|
@ -46,6 +46,12 @@ lxc.cgroup.devices.allow = c 1:9 rwm # /dev/urandom
|
||||||
lxc.cgroup.devices.allow = c 136:* rwm # /dev/tty[1-4] ptys and lxc console
|
lxc.cgroup.devices.allow = c 136:* rwm # /dev/tty[1-4] ptys and lxc console
|
||||||
lxc.cgroup.devices.allow = c 5:2 rwm # /dev/ptmx pty master
|
lxc.cgroup.devices.allow = c 5:2 rwm # /dev/ptmx pty master
|
||||||
|
|
||||||
|
# Needed by default docker config
|
||||||
|
lxc.cgroup.devices.allow = c 5:1 rwm # /dev/console
|
||||||
|
lxc.cgroup.devices.allow = c 4:0 rwm # /dev/tty0
|
||||||
|
lxc.cgroup.devices.allow = c 4:1 rwm # /dev/tty1
|
||||||
|
lxc.cgroup.devices.allow = c 10:200 rwm # /dev/net/tun
|
||||||
|
|
||||||
# Blacklist some syscalls which are not safe in privileged
|
# Blacklist some syscalls which are not safe in privileged
|
||||||
# containers
|
# containers
|
||||||
lxc.seccomp = /usr/share/lxc/config/common.seccomp
|
lxc.seccomp = /usr/share/lxc/config/common.seccomp
|
||||||
|
|
Loading…
Reference in a new issue