Ruby and Rails “path not found” when installed using RVM on Docker

I’m working on a docker file to create a custom workspace on Codenvy. When I create the workspace everything seems to install correctly but when the workspace open and I enter ruby -v I get: bash: ruby: command not found Same for rails: user@de98ec223612:/projects$ rails -v bash: rails: command not found If I type rvm […]

Docker-compose error when try to start

I am having a funny error when I try to run a docker-compose. I have reinstall the VM several times, everything is update and install but I cannot run a compose. $ sudo docker-compose up -d Creating network “apache2_default” with the default driver Building mysql ERROR: Error processing tar file(exit status 1): permission denied My […]

Docker compose wait for without sleep command

I’ve read lots for similar topics; For example this: Docker Compose wait for container X before starting Y etc. So, I’m trying to implement a wait for only using compose and health checks. I have only one docker-compose file. There is a section for the app and for test for this app. Test (service) can […]

Why Is Apache The Primary Webserver In Docker Containers (for PHP)

When I look at docker projects almost everyone goes with Apache within a container to serve up PHP based apps. For example Piwik. Yes, most setups have some sort of proxy server in front of the docker containers (typically Nginx). Just wondering why most people use Apache within containers instead of a lighter weight […]

Temporary failure in name resolution [Errno -3] with Docker

I’m following the docker tutorial and am on the part where I have to build the app using: docker build -t friendlyhello . It reaches up to step 4, where after a pause I get this error: Step 4/7 : RUN pip install -r requirements.txt —> Running in 7f4635a7510a Collecting Flask (from -r requirements.txt (line […]

Node cli program not working in windows machine

I am writing a CLI tool to manipulate docker related commands like docker, docker-compose etc. If I run it on linux environment it works perfectly. But when I run it on windows machine or with a ci tool like team city it is giving error. Error stack path/to/work/d38db04560cf1c1e/node_modules/define-property/index.js:14 [07:18:52] throw new TypeError(‘expected an object or […]

docker mounted host directory file permissions

I am running the mqtt broker Mosqitto in a docker image. I am using the following arguments sudo docker run -d -p 1883:1883 -p 1884:1884 -v /home/mosquitto/apps/dev/mosquitto:/mosquitto –restart always -u mosquitto eclipse-mosquitto:1.4. This should mount the host folder /home/mosquitto/apps/dev/mosquitto to the image folder /mosquitto The problem is that the host user IDs (1001) and the […]

How can i pre-install plugins in jenkins on Windows docker?

I am working on Windows docker, trying to install plugins into my jenkins using docker scripts and make it ready for startup. On linux docker i used to install plugins like this RUN /usr/local/bin/ /var/jenkins_home/plugins.txt is there any similar way in Windows docker?

Rundeck is not showing docker containers in nodes

I am using docker container plugin in rundeck. I was successfully able to start a ubuntu container in rundeck. As per the Rundeck plugin documentation, rundeck wil automatically detect the running container and will add same as a node in nodes tab. But this is not happening in my case. can someone please advise on […]

fabric8 docker-maven-plugin: include additional tags on build

I have the fabric8 docker–maven-plugin configured in my pom.xml as follows: <build> … <plugins> … <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>${docker.plugin.version}</version> <executions> <execution> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> <configuration> <images> <image> <name>${docker.image.prefix}/${project.artifactId}:%l</name> <build> <dockerFile>Dockerfile</dockerFile> <assembly> <descriptorRef>artifact</descriptorRef> </assembly> </build> </image> </images> </configuration> </plugin> … </plugins> … </build> I’m using the %l placeholder which tags the image with […]

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