Category: Docker

Docker Technology Fans

Is it possible to have a Supervisord pretask?

I’m currently having Supervisor run some Docker containers for me. This is besides the point, but the thing about Docker is, right now, it doesn’t always clean up after itself. When it doesn’t Supervisord is unable to restart it and eventually goes to FATAL, and I have to manually go in, run a clean-up script, […]

Understanding a complex docker command

I was just going through this tutorial online and the author , uses the following command along the way: sudo docker run –name my_sql -e MYSQL_ROOT_PASSWORD=mysecretpassword –volumes-from my_datastore -d mysql So my understanding of the above command is as follows there is a specific name given to the image and after that there is a […]

docker pull using puppet not working

docker pull… is working but when i am trying to do the same thing using puppet script, its showing error. Notice: /Stage[main]/Main/Exec[Pulling Docker Image]/returns: 2015/01/30 11:11:11 Authentication is required. Error: /usr/bin/docker pull… returned 1 instead of one of [0] Error: /Stage[main]/Main/Exec[Pulling Docker Image]/returns: change from notrun to 0 failed: /usr/bin/docker pull… returned […]

openshift origin v0.3.3 error starting docker registry pod on centos 6.6

I’m running on centos 6.6. When i run: sudo /opt/bin/openshift start i see an error: I0301 22:02:04.738381 18093 pod_cache.go:194] error getting pod deploy-docker-registry-16mttp status: Get http://localhost:10250/api/v1beta1/podInfo?podID=deploy-docker-registry-16mttp&podNamespace=default: dial tcp connection refused, retry later E0301 22:02:04.738422 18093 pod_cache.go:260] Error getting info for pod default/deploy-docker-registry-16mttp: Get http://localhost:10250/api/v1beta1/podInfo?podID=deploy-docker-registry-16mttp&podNamespace=default: dial tcp connection refused If i do: docker […]

golang:sshfs -o reconnect fails when used inside docker container with “reading directory .: Input/output error”

I am trying to mount a directory located on a host from a docker container using sshfs. The problem I am having is that once the golang app finishes executing the mountpoint disappears whereas it suppose to persist (the same steps performed manually are producing persistent results. The ssh client code: package main import ( […]

Why is PyCharm killing my subprocess.Popen?

I have a very basic subprocess.Popen command like: cmd = [‘docker’, ‘run’, ‘–name=test’,’server’] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) When I run this in a Python script from terminal, this correctly launches the docker image and the image is persisted until I docker stop it. However, when I run the same code from PyCharm 5, the […]

Error defining a task on Amazon Container Service

But to run the aws ecs register-task-definition –family –container-definitions wordpress file: //wordpress.json” is giving the following error below: Error parsing parameter ‘–container-definitions’: Invalid JSON: Expecting object: line 1 column 1 (char 0) JSON received: { My wordpress.json: { “containerDefinitions”: [ { “name”: “wordpress”, “links”: [ “mysql” ], “image”: “wordpress”, “essential”: true, “portMappings”: [ { “containerPort”: […]

Kill processes inside docker container after daemon restart

I’m using docker 1.1.0 with default driver on ubuntu 14.04. Restarting docker daemon does not affect running processes inside container: they are still running, but docker ps does not show any running containers. All these processes now have /sbin/init as parent process (instead of /usr/bin/docker -d). Is it possible to automatically kill all these processes […]

Docker Client server different. And there is no boot2docker

My machine debian VM. It is not having boot2docker. Docker was installed in it. I somehow updated docker.It is now giving me error of client and server of not same version. by running “docker version” gives me this Client version: 1.4.1 Client API version: 1.16 Go version (client): go1.3.3 Git commit (client): 5bc2ff8 OS/Arch (client): […]

Bluemix very slow to start Spring Boot application, hangs

I am trying to deploy a simple Spring Boot application to Bluemix using Docker image. The image is based on dockerfile/java:oracle-java8 and runs perfectly find on my local Linux VM – it starts within 10-30 seconds. However the Blumix container running the same image in the cloud takes more than 10 minutes to start. The […]

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