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 http://www.apache.org/dist/cassandra/debian 20x main” | sudo tee -a /etc/apt/sources.list RUN echo “deb-src http://www.apache.org/dist/cassandra/debian 20x main” | sudo tee -a /etc/apt/sources.list RUN gpg –keyserver pgp.mit.edu –recv-keys 4BD736A82B5C1B00 […]
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 […]
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?
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/libmyodbc5.so 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 […]
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 […]
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 […]
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 […]
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 […]
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.
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 index.docker.io/test/openshift:latest –pull=true /var/lib/jenkins/jobs/test/workspace ERROR: Cannot run program “docker” (in […]