Tag: linux

Not getting real file update in vm

I’ve been playing with docker for a while. Recently, I encountered a “bug” that I cannot identify the reason / cause. I’m currently on windows 8.1 and have docker toolbox installed, which includes docker 1.8.2, docker-machine 0.4.1, and virtualbox 5.0.4 (these are the important ones, presumably). I used to be with pure boot2docker. I’m not […]

Docker says: No connection could be made because the target machine actively refused it

I was using docker everyday but today a problem occurred without changing anything. I opened docker terminal and tried to start one of my containers. But it gave this error:”No connection could be made because the target machine actively refused it” I am using Windows 10. ## . ## ## ## == ## ## ## […]

How to use the docker remote API?

I installed docker on ubuntu 14.04, and it works fine. under etc/default/docker I have this configuration: # Docker Upstart and SysVinit configuration file # Customize location of Docker binary (especially for development testing). #DOCKER=”/usr/local/bin/docker” # Use DOCKER_OPTS to modify the daemon startup options. #DOCKER_OPTS=”–dns –dns″ DOCKER_OPTS=”-H unix:///var/run/docker.sock” # If you need Docker to […]

TCP, UDP and HTTP servers inside docker stop immediately after starting the container?

I am to host TCP, UDP and HTTP servers, developed by Java, inside a java docker container. All what I have in the dockerfile is a copy command for the server application and the bash files, which used to run the server/s. However, the servers are stopped some seconds after running the container? I use […]

Prevent Docker Compose from creating separate network

I discovered that Docker Compose places containers in a separate network when using version 2 of their YAML syntax. This makes linking with existing containers difficult. Is there a way to prevent this, and revert to the behavior of version 1, without actually reverting?

Docker mount socket volume

In a docker container I want to mount a volume_from an other with a Linux Socket, the question sticks on the way it works in background. AFAIK Linux sockets are memory only but once mounted on an other container does it work as so or somehow it uses IO? thanks.

Docker bash'ing with find

I am having a hell of a time attempting to get a bash script to work as expected (as it does in a normal bash session) on a Docker run. The goal is to replace all of the symlinked files within the official java container with their actual file within the JAVA_HOME directory, so everything […]

Can not add new user in docker container with mounted /etc/passwd and /etc/shadow

Example of the problem: docker run -ti -v my_passwd:/etc/passwd -v my_shadow:/etc/shadow –rm centos [root@681a5489f3b0 /]# useradd test # does not work !? useradd: failure while writing changes to /etc/passwd [root@681a5489f3b0 /]# ll /etc/passwd /etc/shadow # permission check -rw-r–r– 1 root root 157 Oct 8 10:17 /etc/passwd -rw-r—– 1 root root 100 Oct 7 18:02 /etc/shadow […]

DB2 docker Shared memory segments cannot be allocated

I am trying to setup a docker image with a DB2 database. The installation is completed without any problems, but I get the following error when I try to restart the database: SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019 I based the Dockerfile on this one: https://github.com/jeffbonhag/db2-docker where he states the same problem should […]

Extracting Docker Container to an bootable hdd disk

I have an docker container. I would like to extract the filesystem and put it on a ssd. At the end I want to put the ssd into another computer, so the computer can boot from the ssd. At the moment I’m creating my docker container. Extracting the filesystem with “docker export” partitioning and creating […]

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