I updated my Jenkins docker file to add rancher-compose to the container. When I’m upgrading the container to the new version i get the error below and the new container do not start. If i run the container locally on the command line it starts and i can use rancher-compose.
10/6/2016 11:01:48 AMmount: permission denied
10/6/2016 11:01:48 AMrmdir: failed to remove ‘cpu’: Read-only file system
10/6/2016 11:01:48 AMmount: permission denied
10/6/2016 11:01:48 AMrmdir: failed to remove ‘cpuacct’: Read-only file system
10/6/2016 11:01:48 AMmount: permission denied
10/6/2016 11:01:48 AMrmdir: failed to remove ‘net_cls’: Read-only file system
10/6/2016 11:01:48 AMmount: permission denied
10/6/2016 11:01:48 AMrmdir: failed to remove ‘net_prio’: Read-only file system
10/6/2016 11:01:48 AM/etc/init.d/docker: 96: ulimit: error setting limit (Operation not permitted)
with privilege mode
10/6/2016 11:03:26 AMmount: cgroup is already mounted or /sys/fs/cgroup/cpu,cpuacct busy
10/6/2016 11:03:26 AMrmdir: failed to remove ‘cpu’: Not a directory
10/6/2016 11:03:26 AMmount: cgroup is already mounted or /sys/fs/cgroup/cpu,cpuacct busy
10/6/2016 11:03:26 AMrmdir: failed to remove ‘cpuacct’: Not a directory
10/6/2016 11:03:26 AMmount: cgroup is already mounted or /sys/fs/cgroup/net_cls,net_prio busy
10/6/2016 11:03:26 AMrmdir: failed to remove ‘net_cls’: Not a directory
10/6/2016 11:03:26 AMmount: cgroup is already mounted or /sys/fs/cgroup/net_cls,net_prio busy
10/6/2016 11:03:26 AMrmdir: failed to remove ‘net_prio’: Not a directory
10/6/2016 11:03:26 AM[....] Starting Docker: dockere[?25le7e[1G[e[32m ok e[39;49me8e[?12le[?25h.
The working Dockerfile
#Debian:jessie based
FROM jenkins:latest
USER root
RUN apt-get update \
&& apt-get install -y apt-utils apt-transport-https ca-certificates \
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \
&& touch /etc/apt/sources.list.d/docker.list \
&& echo "deb [arch=amd64] https://apt.dockerproject.org/repo debian-jessie main" >> /etc/apt/sources.list.d/docker.list \
&& apt-get update \
&& apt-get install -y docker-engine \
&& apt-get clean \
CMD service docker start
The new (not working) Dockerfile
#Debian:jessie based
FROM jenkins:latest
USER root
RUN apt-get update \
&& apt-get install -y apt-utils apt-transport-https ca-certificates \
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D \
&& touch /etc/apt/sources.list.d/docker.list \
&& echo "deb [arch=amd64] https://apt.dockerproject.org/repo debian-jessie main" >> /etc/apt/sources.list.d/docker.list \
&& apt-get update \
&& apt-get install -y docker-engine \
&& apt-get clean
COPY rancher-compose/rancher-compose /usr/local/bin/rancher-compose
CMD service docker start
Any one have any idea what the problem is and have a solution?
Rancher 1.1.3
Docker 1.12.1