Tag: linux

Docker root directory issues

When I run a docker image of debian, the root folder seems be a bit out of place. For e.g : when the docker containers root folder seem to be at some place like this : /var/lib/docker/aufs/mnt/f5656c3118921437130c22785982f09c2695e23ade334809091b6dc5918d6298 when I login into the docker container, all my root directory is at /var/lib/docker/aufs/mnt/f5656c3118921437130c22785982f09c2695e23ade334809091b6dc5918d6298 If I do a […]

Unable to connect to dockerized mysql db remotely

On my AWS ec2 server I have docker 1.9.1 installed. In an image test_image based from ubuntu:trusty official docker image, I have tried to setup the LEMP(Linux, Nginx, MySQL, PHP) architecture. Following is the docker command i have used to start my container: docker run –name test_1 -d -p 80:80 -p 3306:3306 test_image /bin/sh -c […]

Docker – How to check if curl command inside Dockerfile had response code 200

Inside a Dockerfile I try to download an artifact using curl. I have checked that although the artifact doesn’t exist (thus getting a 404) the docker build keeps running. RUN curl -H ‘Cache-Control: no-cache’ ${STANDALONE_LOCATION} -o $JBOSS_HOME/standalone/configuration/standalone.xml Is there a way to check that the curl response code is 200 and throw an error otherwise?

Best place to install antivirus with docker

Currently I’m building some base images to use as docker hosts and I’m unsure where is the best place to run the antivirus. Is it best to run on just the host or would it be best to base our new containers off a docker image that has antivirus baked into it? I can see […]

Resolving env inside another env

So i would like to print my env variable which contains other variables. For example i have: MY_VARS=”My var are:\nVAR1 = ${MY_VAR1}\nVAR2 = ${MY_VAR2}” MY_VAR1=var1 MY_VAR2=var2 and i would like to make it possible in way like: printf “${MY_VARS}” > my.conf or printf “$(echo ${MY_VARS})” > my.conf to get sth like in my.conf file: My […]

Plex Media Server And encFS

I’m trying to Spin Plex Media server in Docker. And I want to mass my media as a Volume, but encrypted. Flow: 1. Mount volume from external storage on underlaying host. 2. mount volume to docker container as volume 3. encrypt data with encfs inside the docker 4. access data in Plex 5. Enjoy your […]

Unable to execute docker command while docker is running

I am trying to run the following docker commmand: docker run –name my_postgres -d -p -v /volumes/data:/var/lib/postgresql/data postgres But I receive the following error: 2015/09/15 20:57:57 Cannot connect to the Docker daemon. Is ‘docker -d’ running on this host? This is odd since I have docker up and running on my computer: ~ ps […]

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 […]

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