Docker postgres persistance and container lifetime

I’m new to docker. You can take a look at my last questions here and see that I’ve been asking questions down this line. I read the docs carefully, and also read several articles on the web (which is pretty difficult given the rapid versioning in docker), but I still can’t get a clear picture […]

Docker – Properly Mounting Host Directory in Docker Container (Windows)

I am having some trouble mounting a directory on my machine into my Docker container. I would like to mount a directory containing files necessary to run a node server. So far, I have successfully been able to run and access my server in browser using the Dockerfile below: # Use an ubuntu base image […]

docker 1.7.0 under ubuntu14.04,can not run a container,error message “device or resourcebusy ”

As the title,I can not run a docker container under ubuntu system like that: root@GPU-video:/var/lib/docker# docker run -it ubuntu:14.04 Error response from daemon: Cannot start container 097adf55270348f22a4af715aeb3ce655778dabf2d52773ecfa3bb1172f5eb2b: device or resource busy Some stackoveflow question tell me it is device-mapper error,but docker in ubuntu is not use device-mapper,under /var/lib/docker I can not find the dir “devicemapper” […]

External properties file using Spring Boot and Docker

i cannot configure a Dockerfile for use external properties file with Spring Boot. This is my Dockerfile: FROM java:8-jre VOLUME /tmp /var/gpm/config ADD gpm-web-1.0.jar app.jar RUN bash -c ‘touch /app.jar’ ENTRYPOINT [“java”,”-cp”,”/var/gpm/config”,”-Dspring.config.location=classpath:application.properties”,”-Djava.security.egd=file:/dev/./urandom”,”-jar”,”/app.jar”] And in my host i have this path to properties file : /var/gpm/config/application.properties But, don’t works. UPDATE i change Dockerfile by this: FROM […]

How to dockerize individual apps inside Hadoop in multi tenant environment?

I have seen HortonWorks put the full Hadoop inside a docker that allows to install Hadoop in different environments. But how about the individual apps inside Hadoop that run on YARN? Especially in a multi-tenant environment, this would be useful. Appreciate any thoughts on how to achieve this.

MySQL EF6 with MVC5 and DNX

I have a MVC5 Project, using MySQL.Data.Entity.EF6, that I am attempting to load using Kestrel (DNX). However, I continue to get this error on Page Load: MetadataException: Schema specified is not valid. Errors: CMaxModel.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name ‘MySql.Data.MySqlClient’. Make sure the provider is […]

How to get Docker metrics using docker remote API

I was able to get information of my docker containers via the command: echo -e “GET /containers/json HTTP/1.0\r\n” | nc -U /var/run/docker.sock I also was able to found information on a specific container: echo -e “GET /containers/<containerId>json HTTP/1.0\r\n” | nc -U /var/run/docker.sock but I’m unable to get information about memory, cpu and I/O usage of […]

docker plugin not running parallel builds

I am using docker plugin in jenkins to do our maven builds. We have about 100 builds and we want to run them in parallel using this plugin. Issue is that if all the 100 builds have same label and this label is used in the “template” portion of the plugin, it only runs one […]

404 when pulling a private Docker repo from Hub

Today I deployed a few new servers, and ran into a strange issue. On one of our private hub repos, I suddenly got a 404. It’s strange, since it has worked fine in the past. Moreover, all of the other (private) repos under the same account works fine. root@some-server:~# docker pull foo/bar Pulling repository foo/bar […]

Kubernetes how to run container only after volume(nfs) is mounted

The official nginx image does not start on my setup because I am mounting the config files from this nfs volume.I am trying overcome this with a bash script like below, but it is not working. Any suggestions? kubectl logs conteinerxxx -p returns nginx: invalid option: “off”. But nginx -g “daemon off;”seems to run nice […]

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