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

Running .Net Core in Docker in Windows Subsystem for Linux

Practically I want to play with .NET Core within Docker. So as I understand it from this post to give myself the best flexibility I would install “Docker For Windows”. Means I can ultimately deploy my .Core app to a container that is either a Windows or a Linux container. However the Linux container is […]

Restricting users in Docker group to not run privileged containers

Docker daemon runs as root. Once we add a user to the Docker group, he can launch any docker container even privileged containers. This seems to be a serious security issue. Is there a way of limiting some users in the Docker group to not be able to run privileged containers?

Connect to remote MySQL db from docker container

I’m working to containerize a Django 1.5.x application that connects to a MySQL DB on a separate server via ODBC: [mysql_default] database = DB_NAME driver = /usr/lib64/ server = REMOTE_DB_SERVER user = DB_USER password = DB_USER_PWD port = 3306 I’m able to run the Django app on my local machine (outside docker) with a connection […]

Is there a way to download docker hub images whitout “docker pull” for a machine with out Internet access?

I want to download some images for a computer that has not internet. My computer that have internet has NO DOCKER installed (old kernel) so it is not possible to use docker command to pull, save and export it to the other machine. I’m looking for a way to download a docker image (like via […]

Accessing to mysql from host to container in cli

I created my container like this: $ docker run -d -p 33060:3306 myimage Then I try connect from host to mysql server in container: $ mysql -uroot -proot -P 33060 I got this error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) It odd because in Navicat only I changed […]

How to use docker in both dev and production environment?

We’re currently using chef for both production and development environment. I like the concept of docker that launches isolated containers for different service roles. And I think it will work great when building a dev environment. I’m a bit unclear on how we should use it in production environment (or should i use it in […]

cannot connect to cassandra docker with cqlsh

I’m run Cassandra docker container: docker pull cassandra run –name cassandra -p 9042:9042 -p 9160:9160 -d cassandra The netstat -tpln is: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name LISTEN – tcp6 0 0 [::]:9160 [::]:* LISTEN – tcp6 0 0 [::]:9042 [::]:* Connection to C* from local cqlsh is Ok: docker exec […]

Docker container CPU allocation

I have created a container: docker run -c=20 -i -t ubuntu:latest /bin/bash I tried to use -c flag to control CPU usage and maximize it in 50 %. When I am running md5sum /dev/urandom inside container, it use up 100 % CPU in host machine.

docker build and publish plugin usage

I have jenkins running as Docker container, I tried to install jenkins build and publish plugin here and copied Dockerfile inside jenkins workspace, but whenever I run the build, it gives me: Started by user Jenkins Admin Building in workspace /var/lib/jenkins/jobs/workspace [workspace] $ docker build -t –pull=true /var/lib/jenkins/jobs/test/workspace ERROR: Cannot run program “docker” (in […]

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