Compare commits

...
Sign in to create a new pull request.

9 commits

Author SHA1 Message Date
Mohan Boddu
2510e98b37 "Bump RELEASE for automatic rebuild" 2018-03-15 14:41:37 +00:00
Adam Miller
ab98aa7a0b Bump Release for rebuild 2017-11-14 16:17:29 -06:00
Adam Miller
83e09798b2 Bump RELEASE for automatic rebuild 2017-11-14 14:18:41 -06:00
Adam Miller
f49ace8371 Bump RELEASE for automatic rebuild 2017-09-21 14:25:08 -05:00
yuqi-zhang
dba5d017c8 Update f26 branch to master
Also fix some naming issues.

Signed-off-by: Yu Qi Zhang <jzehrarnyg@gmail.com>
2017-09-06 15:30:44 -04:00
Adam Miller
72de8d4dca Bump RELEASE for automatic rebuild 2017-08-24 16:56:41 -05:00
Adam Miller
12ff348c8c Bump RELEASE for automatic rebuild 2017-07-25 16:19:37 -05:00
Giuseppe Scrivano
5454857d03 sync with upstream
- fix some selinux labelling issues

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit eecdfb94e1)
2017-07-07 16:16:45 +02:00
yuqi-zhang
5e065a4c2e Change FROM line for f26 branch 2017-06-13 17:57:14 -04:00
5 changed files with 18 additions and 22 deletions

View file

@ -1,8 +1,8 @@
FROM registry.fedoraproject.org/fedora:rawhide
FROM registry.fedoraproject.org/fedora:26
ENV VERSION=0 RELEASE=1 ARCH=x86_64
ENV VERSION=0 RELEASE=9 ARCH=x86_64
LABEL com.redhat.component="docker" \
name="docker" \
name="$FGC/docker" \
version="$VERSION" \
release="$RELEASE.$DISTTAG" \
architecture="$ARCH" \
@ -13,7 +13,8 @@ LABEL com.redhat.component="docker" \
RUN dnf install --setopt=tsflags=nodocs -y docker container-storage-setup container-selinux cloud-utils-growpart python-docker-py docker-novolume-plugin lvm2 iptables procps-ng xz oci-register-machine \
&& rpm -V docker container-storage-setup container-selinux cloud-utils-growpart python-docker-py docker-novolume-plugin lvm2 iptables procps-ng xz oci-register-machine \
&& mkdir -p /usr/lib/modules && dnf clean all
&& mkdir -p /usr/lib/modules /exports/hostfs/etc/docker \
&& dnf clean all
RUN ln -s /usr/libexec/docker/docker-runc-current /usr/bin/docker-runc
@ -25,6 +26,8 @@ COPY set_mounts.sh /
COPY config.json.template service.template tmpfiles.template /exports/
COPY daemon.json /exports/hostfs/etc/docker/container-daemon.json
# https://github.com/rhatdan/oci-umount/issues/2
RUN cp /etc/oci-umount.conf /exports/hostfs/etc
# Copy config if available
RUN (test -e /etc/oci-umount.conf && cp /etc/oci-umount.conf /exports/hostfs/etc) || true
CMD ["/usr/bin/init.sh"]

View file

@ -5,6 +5,7 @@
"arch": "amd64"
},
"process": {
"selinuxLabel": "system_u:system_r:container_runtime_t:s0",
"terminal": false,
"user": {
"uid": 0,
@ -294,17 +295,6 @@
"mode=755"
]
},
{
"type": "bind",
"source": "/usr/share/rhel",
"destination": "/usr/share/rhel",
"options": [
"rprivate",
"rbind",
"ro",
"mode=755"
]
},
{
"type": "bind",
"source": "${RUN_DIRECTORY}",
@ -380,7 +370,7 @@
],
"hooks": {},
"linux": {
"rootfsPropagation": "private",
"rootfsPropagation": "rslave",
"resources": {
"devices": [
{
@ -393,7 +383,6 @@
{
"type": "mount"
}
],
"selinuxProcessLabel": "system_u:system_r:container_runtime_t:s0"
]
}
}

View file

@ -1,6 +1,4 @@
{
"authorization-plugins": ["rhel-push-plugin"],
"default-runtime": "oci",
"containerd": "/run/containerd.sock",
"userland-proxy-path": "/usr/libexec/docker/docker-proxy-current",

View file

@ -1,5 +1,10 @@
#!/bin/bash
# Ensure that new process maintain this SELinux label
PID=$$
LABEL=`tr -d '\000' < /proc/$PID/attr/current`
printf %s $LABEL > /proc/self/attr/exec
source /run/docker-bash-env
# set storage first
@ -22,7 +27,7 @@ do
sleep 0.1
done
# Run all the installed containers
# Run all the installed plugins
mkdir -p /run/docker/plugins/
ls -1 /usr/libexec/docker/*plugin | \
while read i;

View file

@ -6,6 +6,7 @@ After=network.target
EnvironmentFile=-/etc/sysconfig/docker-storage
EnvironmentFile=-/etc/sysconfig/docker-network
Environment=GOTRACEBACK=crash
SELinuxContext=system_u:system_r:container_runtime_t:s0
ExecStartPre=/bin/sh $DESTDIR/rootfs/set_mounts.sh
ExecStartPre=/bin/bash -c 'export -p > /run/docker-bash-env'
ExecStart=$EXEC_START