Docker – MySQL containers on using the same volume of a data-only container

Currently, I’m trying to figure out on how to run multiple MySQL containers that uses the same volume from a data-only container. After running the first one and successfully created my database and records in there, I tried to run another new MySQL container and faced this error: Lost connection to MySQL server at ‘reading […]

Can I pass environment variables to a Docker container using Cockpit?

I don’t see such an option in the UI: .

Docker resource management and runtime configuration

I am trying to setup docker container with centOS and I need to make runtime changes in its configuration – to change for example memory, or disc size limitations. Is that possible? I saw it is possible to do this with vagrant, but I don’t want to use it. Thanks for your help!

Docker: Not able to run any command in images built using dockerfile

Hi i am using docker version 1.5.0 on ubuntu 14.04. I have a ubuntu and centos official base image from dockerhub. If i run these images I can execute any command in container sudo docker run -it ubuntu /bin/sh # ls output bin boot dev etc home lib lib64 media mnt opt proc root run […]

Concourse CI and custom docker-compose

I try to start Concourse CI with custom docker-compose version: ‘2’ services: concourse-web: image: concourse/concourse container_name: concourse-web command: web network_mode: host volumes: [“./keys/web:/concourse-keys”] environment: CONCOURSE_BASIC_AUTH_USERNAME: concourse CONCOURSE_BASIC_AUTH_PASSWORD: changeme CONCOURSE_EXTERNAL_URL: http://my.internal.ip:8092 CONCOURSE_BIND_PORT: 8092 CONCOURSE_POSTGRES_DATA_SOURCE: |- postgres://odoo:odoo@localhost:5432/concourse?sslmode=disable concourse-worker: image: concourse/concourse container_name: concourse-worker network_mode: host privileged: true command: worker volumes: [“./keys/worker:/concourse-keys”] environment: CONCOURSE_BIND_PORT: 8092 And worker can’t connect […]

Mysql python connector is unavailable when running pip install –allow external

While using Python 3.4 in a docker container, I have been using pip install mysql-connector-python –allow-external mysql-connector-python to install the dependency on new containers. Suddenly, however, the command fails saying “Could not find any downloads that satisfy the requirement”. I checked pypi and the dependency is still there, but for some reason pip can’t find […]

how to catch the exit event of process in docker

I create a process with nodejs on docker container, but I don’t catch the exit event of the process, the docker version is 1.0.1, but the same code is okay on the version 0.91 of docker. var spawn = require(‘child_process’).spawn; var exec = spawn(‘docker’, ‘run busybox /etc/bin/bash each hello world’); exec.on(‘error’, function(err){ console.log(err); }); exec.stdout.on(‘data’, […]

In microservice, how do you make sure that all services get updated when more than one micro service is affected?

Example Online checkout: User adds item to shopping cart, clicks checkout and pays for order via credit card. Order is created via OrderMicroservice a) Order is updated with “Complete” status via OrderMicroservice b) Payment is processed via credit card and logged via PaymentMicroservice c) Invoice is created and emailed to user via InvoiceMicroservice For some […]

Docker based development environment and live environment

I am pretty relatively new to Docker but I absolutely love how it is designed. I am about to change our project release workflow and I have some questions and I hope some people could share some experiences on what is the best way to go about this. We use Vagrant to manage development environments. […]

Docker stops working inside Vagrant When I Update Guest Additions

I am using Vagrant 1.5.1 with Puppet. Puppet provisions the box by installing dependencies, including docker. As part of that provisioning process, docker is started with two containers – elasticsearch and redis. When I run “vagrant up” it works fine. When I stop and start the VM then things break. Firstly it tells me that […]

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