docker : commit doesn't seem to persist changes by the passwd command

docker run -i -t dhrp/sshd /bin/bash root@f123d1d12d>passwd …change the pw In another shell : docker commit f123d1d12d max/sshd fbf0b19e284f max@max-ubuntu:~$ docker images max/sshd latest fbf0b19e284f 13 seconds ago 21.12 kB Then I start the container : docker run -d -p 22 max/sshd /usr/sbin/sshd -D docker ps ID IMAGE COMMAND CREATED STATUS PORTS 440871de534f dhrp/sshd:latest /bin/bash […]

How to add native docker-compose to official Jenkins image

I am using official Jenkins image: I wonder which is the best approach to add native docker-compose to it. For a full continuous integration system I need Jenkins to start Gradle+docker+docker-compose applications but, unlike with Docker plugins, docker-image plugins for Gradle act just as docker-compose frontend, needing it to be native installed. I will […]

Docker maven and jenkins, mvn install failed requesting junit:junit:jar:3.x

I have a maven 3.2.5 docker image and a jenkins image built from the maven image. Maven image Dockerfile: from dockerfile/java:oracle-java7 ENV MAVEN_VERSION 3.2.5 RUN curl -sSL$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf – -C /usr/share \ && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \ && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn #ADD settings.xml /usr/share/maven/conf/ ENV MAVEN_HOME /usr/share/maven CMD [“mvn”] Jenkins Dockerfile: […]

Can I run custom .sh files while building docker image?

I want to use docker with custom nginx module. So I have to download nginx, extract, rebuild and install it. It’s a lot of work. Can I implement this logic in .sh file and ask docker to execute this file while building image. I tried: ADD nginx/ /home/fbelov/ RUN [“/home/fbelov/”] but it doesn’t work —> […]

Data volumes with Docker on CentOS 6.5 host now working

Trying to mount some data volume from another container failed on CentOS 6.5. Here are the steps to reproduce: [me@loco tmp]$ docker run -d –name just-volume -v /foobar busybox:latest echo DONE 77f58837be52a6fc7dfb24950153fbedc63c1616c7263b77c29299d350fd2722 [me@loco tmp]$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 77f58837be52 busybox:buildroot-2014.02 echo DONE 6 seconds ago Exited (0) 5 […]

Error commiting an image in docker

I am learning docker and while I was trying to commit my image I get this error docker commit ccaa6f1933e Serret/FirstApp:1.0 invalid reference format

Error while changing hostname inside docker container

I am trying to change the hostname of a docker container running centos using the command hostnamectl set-hostname But it gives me back a traceback of Could not set property: Failed to execute program /lib64/dbus-1/dbus-daemon-launch-helper: Success with an exit code of 1. Here is the relevant travis-CI build traceback EDIT: I am running […]

How to launch a docker bundle with specified exposed ports?

If you are not familiar with docker bundles please read this. So I have tried to create a simple docker bundle from the following docker-compose.yml version: “2” services: web: image: cohenaj194/apache-simple ports: – 32701:80 nginx: image: nginx ports: – 32700:80 But the ports of the docker services this bundle created were not exposed and I […]

Docker devicemapper storage space

Am getting the “no space left on device” error while removing a container. # docker rm orientdb1 Error response from daemon: Driver devicemapper failed to remove root filesystem ba18ea8014b6024eb738502612130244ff363b433f146102c64eb2eb0f3a321c: devmapper: Error saving transaction metadata: devmapper: Error creating metadata file: open /var/lib/docker/devicemapper/metadata/.tmp636968871: no space left on device Here is a snippet from “df -kh” output. Filesystem […]

Handling ports in Shipyard Load Balancer with Docker

I’d like to have Shipyard running in my server and I’m trying to run it with shipyard/deploy container. It runs multiple containers and one of them is a load balancer that runs at port 80. Problem is that I’m handling my containers with Nginx installed on the host, out of containers, at port 80 too. […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.