How can I use an ephemeral volume for a Docker container using an official MySQL image with docker-compose?

I’m using an official MySQL docker image (https://github.com/docker-library/mysql/blob/3288a66368f16deb6f2768ce373ab36f92553cfa/5.6/Dockerfile) with docker-compose and I would like its data to be wiped out upon restart. The default is that it retains its data between container restarts. Here’s my docker-compose.yml: version: “2” services: mydb: image: mysql:5.6 environment: MYSQL_ROOT_PASSWORD: foo When I use docker inspect on my container it shows […]

Installing Pillow requirements on debian Jessie

I’m trying to install Pillow and requirements in a Docker container based on the official images which I believe use Debian Jessie, but some of the installation packages I would install on Ubuntu aren’t available in Debian it seems. In particular, they are libwebp-dev, tcl8.6-dev, tk8.6-dev, python-tk If I search for these online I do […]

How does docker manage hashes for forking of docker images?

In docker, its clear that i can pull other people’s images and run them. But somehow, docker seems to know if i’ve ever pushed a layer , and is able to skip pushing that image. I thus have two questions : How does dockerhub store image hashes – are the image hashes shared between docker […]

Dockerizing Spring Boot App with Postgresql

I am trying to create a Docker container for a Spring Boot application which uses PostgreSQL as database. My aim is build a container which runs app as well as PostgreSQL. I created a Dockerfile as below: FROM ubuntu:15.10 LABEL version=”1″ ADD app.jar app.jar RUN bash -c ‘touch /app.jar’ # Install Java, Postgresql …… USER […]

Netcating from client to server with docker-ed application lags initially

I have a client and server in an en enterprise environment. netcating client to server is instant. _______SERVER______ ______CLIENT_______ | | | | | | <———> | | | 20.20.20.20 | | | |___________________| |___________________| > netcat -l 8000 > netcat 20.20.20.20 8000 blahblah blahblah However netcating with a container on the server.. _______SERVER______ ______CLIENT_______ […]

How to properly check if a Symfony application is installed?

In our Dockerfile’s entrypoint.sh I need to check (actually the database) to see if there’s an application currently installed and if not run a php app/console command. This is my current approach: CHECK=$(php app/console doctrine:query:sql “SELECT * FROM user” -q) if [ $? -ne 0 ]; then php app/console vendor:install fi Which doesn’t feel right. […]

Use docker build step plugin in Jenkins docker container

I have a jenkins server inside a docker container: I’ve edit the base image so I’m able to mount the docker sockets to my container and use the sockets as jenkins user. docker run -d -u jenkins –name jenkins -p 50000:50000 -p 8080:8080 –volumes-from jenkins-volume –restart=always -v /var/run/docker.sock:/var/run/docker.sock test/jenkins:1.0 So I’m able to perform commands […]

Issue with Docker Toolbox

I have been getting the following problem after getting Docker set-up on a Mac OS using the Docker Toolbox: Pulling repository docker.io/library/hello-world Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority I have seen some potential solutions to this problem on StackOverflow, but none of them seems to be working for me. […]

Error response from daemon: Container CONTAINER_NAME is not running

I have a docker image dajobe/hbase and its been built from Ubuntu. I created a container of this image and named it hb. $ docker run -d –name hb dajobe/hbase e1f68ff8b3b6c5e474426e2566f8c087d6a785fc5eeb58cd2aeb86176068651d I then started the /bin/bash on hb, and checked for the availability of the vi editor. $ docker exec -it hb /bin/bash root@e1f68ff8b3b6:/# vi […]

How use Dokku with django?

I try use dokku for my web projects – deployment become cool. But I can’t find information about two things. Can I autocreate database from dokku-util? How? How and where store media files without using AWS? I want use only my vps’. P.S. Or may be you see good materials about full workflow for dokku?

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