Reducing docker image size

I downloaded an image that has only debian OS inside and started to build on it. The debian image was about 700mb when I first started with it. After installing LAMP, drupal site, varnish, tomcat, solr and some other services. The image has gone up significantly (i,e) upto 13 gb and after importing a 3gb […]

Docker-compose: resolving mongo container from Angular client code

I have created a todo web app (using MEAN) that I’m trying to run on Docker Swarm (not Swarm mode). The app runs locally just fine with docker-compose. I can view the todo items and can edit/delete them correctly. However when I try to run it on the Swarm cluster using docker-compose I see the […]

PyMongo – UserNotFound: Could not find user authenticated@admin

I checked the permission on the /etc/mongod.conf: vagrant@trusty64:/vagrant/test$ sudo docker exec -it mongodb ls -l /etc/mongod.conf -rw-r–r– 1 root root 472 Jun 22 00:09 /etc/mongod.conf Then, I checked it’s corresponding content: vagrant@trusty64:/vagrant/test$ sudo docker exec -it mongodb cat /etc/mongod.conf ## mongodb.conf, this file is enforced by puppet. ## ## Note: ## ## where and […]

Docker vs Mysql local server SQLSTATE[HY000] [2003]

I installed a docker with apache2, MySQL, and my project (zend1). I can’t import my big database to MySQL in the docker so I set it to the local Mysql Server 5.7 ( port: 3307) where I imported all the data, and now at localhost, I still see this error. Fatal error: Uncaught exception ‘PDOException’ […]

I need to run my node app using this Docker file

Docker Image is: My node app: ‘use strict’; var express = require(‘express’); // Constants var PORT = 8080; var HOST = ‘’; // App var app = express(); app.get(‘/’, function (req, res) { res.send(‘Hello world\n’); }); app.listen(PORT, HOST); console.log(‘Running on http://’ + HOST + ‘:’ + PORT); How Can i deploy my node app […]

mounted directory on host does not work or access docker container

my docker version $ docker -v Docker version 1.7.1, build 786b29d host mounted some directory on boot. $ cat /etc/rc.d/rc.local mount -t nfs -o nolock db:/A /usr/local/B/C [root@web8 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 24G 1.1G 22G 5% / tmpfs 3.9G 148K 3.9G 1% /dev/shm /dev/sda1 190M 71M 109M 40% […]

What are the benefits of using DEB for installation with Dockerfile

TL;DR: Do you use a deb/rpm/etc to add build products to a container or use ADD * / COPY * in the dockerfile? what are the benefits of using a deb file? There are multiple options for creating a custom docker container that includes your build products. I am wondering if there is any actual […]

Can I use restarting docker instead restarting app in container?

I run app in Docker container. I didn’t bundle the app’s code into image, but using -v to map the code into container in order to upgrade the code more conveniently. I used to use pm2 to manage the process, and when I upgrade the code, I use docker exec -it app bash to go […]

error installing Tensorflow via docker

I have tried to run this docker run -it tensorflow/tensorflow:1.1.0 bash but I got this error. Why I get this error(it says: Unable to find image ‘tensorflow/tensorflow:1.1.0’ locally) and starts downloading and then it stops dowloading and says timeout? could you pls help me? Unable to find image ‘tensorflow/tensorflow:1.1.0’ locally 1.1.0: Pulling from tensorflow/tensorflow c62795f78da9: […]

Dockerfile contains a python script that writes to an output file, but the output file is not being created on the container

It’s my first question, so be gentle 🙂 I’ve got a Dockerfile as follows: FROM centos:latest Maintainer Liz Miller LABEL description=”Image Built with Dockerfile.” RUN yum -y update RUN yum -y install python-setuptools RUN easy_install supervisor RUN mkdir -p /var/log/supervisor RUN yum -y install which RUN yum -y install git RUN yum install python COPY […]

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