Integration tests for continuous delivery using docker

I currently develop a product which expose a a REST API and that will eventually be hosted on the cloud. My technology stack is spring (boot, mvc, data, test, etc.) on top of maven. I have integration tests to test from my API connected to a test database. To better test my product in a […]

How to automatically remove old Docker images?

After using Docker for some times now, I actually run into disk space issues because many images were stored (one for each version) : REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE registry latest 376ca9433bfe 4 weeks ago 429.1 MB registry 0.6.5 376ca9433bfe 4 weeks ago 429.1 MB registry 0.6.3 1f7bbd131cd8 5 weeks ago 486.2 MB […]

Colorized output from docker to websocket

This might be a little bit of a complex question but I am open to try any and all suggestions thrown at me. I am running a docker instance which clones a git repository, it is a php 7 apache docker instance: FROM php:7.0-apache With the Symfony Process Component I am booting up my container […]

What is the difference between “docker logs” and “docker attach”?

They both allow you to connect to the stdout/stderr of a running container. In particular docker logs –follow seems to work similarly to docker attach. Is one command an obsolete version of the other, or are there significant differences?

Running 32bit LXC on 64 bit host machine?

I was thinking that 64 bit host machine can launch 32 bit LXC as we have a option of specifying arch during LXC creation. hostmc$> lxc-create -n ubuntu -t ubuntu — i386 Host machine: hostmc$> uname -a Linux D 3.11.0-26-generic #45~precise1-Ubuntu SMP Tue Jul 15 04:02:35 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux But then on […]

Automating microservices load balancing / scaling

Reading up on micro services for a few days now I was wondering how do people go about automating the load balancing and scaling these things? I have a specific scenario in mind what I would like to achieve but not sure if it’s possible or maybe I’m thinking about it wrong. So here it […]

nginx redirect to docker container

before posting my issue, I would like to know if it is even possible to achieve what I want. I have, lets say, running a docker container with nginx & letsencrypt. On the same server are 2 more docker containers running websites. For now all is redirected fine, so goes to docker 1 […]

Rake cannot run Rspec specs in Docker/Rails/Postgres setup (but web app works fine)

Is there a special step or configuration needed to get Rails (3.2.21) test database (eg, Rspec specs) working under Docker when using the Heroku-docker solution? I’m using Docker Toolkit (the Docker Quickstart Terminal) to run my Heroku app locally, and everything except running specs is working. This works: docker-compose run web rake db:reset And the […]

Cannot connect to MySql in Docker. Access Denied Error thrown. Flask-SqlAlchemy

Alright so been trying for a while to get this to work. Here is the line of commands I run from start to finish and I get an Access denied… error shown below. $ docker-compose up –build -d $ docker exec -it flaskdocker_mysql_1 mysql -u root -p mysql> CREATE DATABASE flask_docker; mysql> CREATE USER `flask-docker`@`localhost` […]

How to start multiple processes for a Docker container in a bash script

I found very strange behaviour when I build and run docker container. I would like to have container with cassandra and ssh. In my Dockerfile I’ve got: RUN echo “deb 20x main” | sudo tee -a /etc/apt/sources.list RUN echo “deb-src 20x main” | sudo tee -a /etc/apt/sources.list RUN gpg –keyserver –recv-keys 4BD736A82B5C1B00 […]

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