Isolated Docker containers and resource limiting

Say I want to build a hosting environment using Docker (so that I can scale up if needed). I want: Each user to be able to execute arbitrary code and Each user to not see or affect other users Is this something more concerning Docker, or some other tool like Apparmor? I want users to […]

2 docker containers run in 1 container

i try to start two detached containers. first a MySql docker run -td –name mysql -p 3306:3306 -e MYSQL_PASS=”admin” tutum/mysql the i try to start a self built container for apache, typo3 docker run -td –name typo -p 80:80 –link mysql:mysql thomasm/typo3-45 i would now expect that the two containers show up in docker ps […]

Docker link container

Im am using docker compose to run 2 containers (both centos based). This is my yml: front: build: front/docker/java ports: – “8080:8080” links: – back:db back: build: back/docker/java ports: – “8081:8081” But the front container gets nothing in the /etc/hosts for or env vars to be able to connect to the back container. I am […]

What are the default tcp ports used by GridGain

I would like to run GridGain from within a Docker container. What are the default TCP ports used by GridGain that are required to be exposed by the Docker container?

Use Docker.io without the build-in NAT function but with DHCP

I am unable to use the NAT networking of docker in my setup. Instead i wan’t to use DHCP configured IPs or allow docker to dynamically choose an IP from a preconfigured range. Is this possible? I think NAT is a very bad idea und should not be used in production.

Can't access mapped port (can't connect from host to sshd running inside docker container)

Steps to reproduce: HOST: docker run -t -i -p 22:1200 myimage /bin/bash GUEST: bash# service sshd start HOST: docker ps -l HOST: docker inspect -f ‘{{ .NetworkSettings.IPAddress }}’ container_id HOST: ssh -p 1200 root@container_ip_from_previous_command RESULT: Can’t access mapped port (can’t connect to sshd running inside docker container) My host computer is running Ubuntu 14.04 64bit. […]

Micro-components architecture with python / Django / Drf

I have several applications in my Django project: – ticker – payments – crypto – referrals – core I am using Docker wrapped by Wercker (quite limiting I would say, but saves time). My question is, how to deploy each application as a standalone container as a start, and a standalone VPS Node in the […]

Ansible error: KeyError: 'ApiVersion'

I’m using Ansible 1.7 (devel) and Docker 0.9.1 build 3600720, and I’m stuck with this error: failed: [myapp.com] => {“failed”: true, “item”: “”, “parsed”: false} invalid output was: Traceback (most recent call last): File “/root/.ansible/tmp/ansible-tmp-1400951250.7-173380463612813/docker”, line 1959, in <module> main() File “/root/.ansible/tmp/ansible-tmp-1400951250.7-173380463612813/docker”, line 693, in main containers = manager.create_containers(1) File “/root/.ansible/tmp/ansible-tmp-1400951250.7-173380463612813/docker”, line 548, in create_containers […]

Docker inter-container routing

I have a dockerized application which has a number (dozens) of simple containers which produce some network traffic. This traffic should be routed to a VPN (certificate authenticated OpenVPN). The simple way to accomplish this is to install OpenVPN and the certificates on the host, and then the docker standard networking takes care of the […]

Use dockerfile/mysql mysqld_safe mysqld from pid file error

The following docker run command results in an unexpected error. docker run –name mysql -d -v /data/mysql:/var/lib/mysql dockerfile/mysql Error: 150311 07:36:04 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 150311 07:36:04 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended How can I solve it?

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