Tag: docker

Unable to connect to tomcat running in Docker (Connection refused)

I am very new to Docker, and I am trying to run the default tomcat image. I see that the container is running, but when I try to hit it from my web browser, I get “CONNECTION REFUSED”. What is going on here? Details I have the Docker Toolbox installed on my Windows 7 PC. […]

Docker-machine error “Could not find matching IP for MAC address” on Windows 10

I got strange problem with docker-machine on windows 10. And I still cannot find solution. It used to work before, but after some update of Windows 10 I began to get error “Could not find matching IP for MAC address …”. This error appears on any action with docker-machine. For example, with docker-machine ls: I […]

Vagrant with Docker Provider fails with rsync over ssh

I have problems to run Vagrant with Docker. The issue is the rsync of the shared folders. WDFM32388067A:vagranttest d022051$ vagrant up Bringing machine ‘default’ up with ‘docker’ provider… ==> default: Docker host is required. One will be created if necessary… default: Vagrant will now create or start a local VM to act as the Docker […]

Install pip in docker

I’m not able to install pip in Docker. Here’s my Dockerfile: FROM ubuntu:14.04 # Install dependencies RUN apt-get update -y RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysql python3.4 python-pip When building, I get: Sending build context to Docker daemon 109.6 kB Step 1 : FROM ubuntu:14.04 —> b549a9959a66 Step 2 : […]

Workers dying early due to uneven work distribution in Luigi (2.6.1)

We are trying to run a simple pipeline distributed on a docker swarm cluster. The luigi workers are deployed as replicated docker services. They start successfully and after a few seconds of asking for work to luigi-server, they begin to die due to no work was assigned to them and all tasks end up assigned […]

What is best practice for sharing database between containers in docker?

Is there anyone knows what is the best practice for sharing database between containers in docker? What I mean is I want to create multiple containers in docker. Then, these containers will execute CRUD on the same database with same identity. So far, I have two ideas. One is create an separate container to run […]

Where should environment-specific values be saved in a Laravel 5 application?

I’m trying to wrap my head around the .env way of doing configuration in Laravel 5. Here’s my story: I’m converting an existing Laravel 4 application to Laravel 5. I currently have different environments (local and production) and the cascading configuration system works nicely. I have my environment-specific application config in separate folders under app/config. […]

How to share images between multiple docker hosts?

I have two hosts and docker is installed in each. As we know, each docker stores the images in local /var/lib/docker directory. So If I want to use some image, such as ubuntu, I must execute the docker pull to download from internet in each host. I think it’s slow. Can I store the images […]

How to persist MongoDB data between container restarts?

It is quite easy to run MongoDB containerised using docker. Though each time you start a new mongodb container, you will get new empty database. What should I do in order to keep the database content between container restarts? I tried to bind external directory to container using -v option but without any success.

Docker composer copy files

I have a Dockerfile where i copy an existing directory(with content) to the container which works fine: Dockerfile FROM php:7.0-apache COPY Frontend/ /var/www/html/aw3somevideo/ COPY Frontend/ /var/www/html/ RUN ls -al /var/www/html RUN chown -R www-data:www-data /var/www/html RUN chmod -R 755 /var/www/html But when i use a docker-compose.yml file there is only the directory àw3somevideoand inside àw3somevideo […]

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