Tag: docker compose

Running docker containers behind loadbalancer, ports not forwarded as expected

I am trying to run a server from CA in docker compose and I want to be able to cluster it. From the CA side this only means that the db is shared between multiple instances of the CA server. The server expose 9443,8443, 8080. The load balancer does not seem to forward these correctly […]

Show python system.info logs in docker-compose log

I am working on a web application organized with docker-compose. It consists out of a Python backend and a node frontend. I want to get python logging.info notifications in my docker-compose log. Somehow this is not working. My python Dockerfile is extremely basic: FROM python:3.6 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app ADD requirements.txt /tmp/ RUN […]

Docker-compose error with service env_file

I’ve been working on passing my sensitive data (credentials) to the docker container through a .env file. I’m using docker-compose and my docker-compose.yml file looks as follows: services: some-service: env_file: – .env But when I try to do “docker-compose up”, I get the below error: ERROR: In file ‘./docker-compose.yml’, service ‘env_file’ must be a mapping […]

Docker on windows 7: hello-world runs on Docker Quickstart Terminal but not on command prompt. why?

I haven’t been able to run hello-world on command prompt but on quickstart terminal it works. Why is that? Error message on command prompt: https://drive.google.com/file/d/0B0rw5s9roTIiWnpOM1JhVUNDZVU/view?usp=sharing In a broader context, I am trying to run Docker compose to set up a network but unsuccessful. So I figure understanding more about Docker would be helpful. Appreciate any […]

How to create new databases and collections when using MongoDB with Docker?

I’m pretty new with Dockers and now practiced with initializing new MongoDB container using docker-compose. I’ve learned that inserting environment variables into the Dockerfile will create for me an admin user and set a password. I also found that I can pass the docker a js file that will process some commands and create for […]

Use Docker Compose offline by using local images and not pulling images

I want to issue the docker-compose command to bring up all the dependent service containers that I have previously pulled down while inside the company network. I am outside the company network so when I try to start my environment the first thing it does is try to call out to the company network and […]

where should I put docker-compose.yml

When I pull the images from docker hub. Sometimes, I would like to run the images in a multi-container way. So I choose to use docker-compose. For example, I would run the zookeeper in replicated mode. I will new a file named docker-compose.yml, and run docker-compose up and wait for it to initialize completely. My […]

docker-compose oci runtime error starting container process caused connection reset by peer

I updated docker and compose to Docker version 17.06.0-ce, build 02c1d87 docker-compose version 1.14.0, build c7bdf9e Now when I am running container with docker run it works fine. But I have 10+ services defined in compose file. For last 1 year it was working file and after update and restarting docker service it suddenly giving […]

Running Docker compose with ElasticSearch on OS X gives me error sysctl: setting key “vm.max_map_count”: Read-only file system

When running Docker on my my OS X i get the following error: sysctl: setting key “vm.max_map_count”: Read-only file system I know on Linux you can use edit sysctl but i haven’t worked out how to do this on OSX. Ive tried setting Docker for Mac memory under preferences but that didn’t do anything. I […]

Connection to docker container failing because of postgis port issue

My docker container is able to successfully build but when I enter the command docker-compose build, the following error is returned: Starting docker_etl_1 … Starting 1e5f56853e10_1e5f56853e10_1e5f56853e10_docker_postgis_1 … Starting 1e5f56853e10_1e5f56853e10_1e5f56853e10_docker_postgis_1 Starting 1e5f56853e10_1e5f56853e10_1e5f56853e10_docker_postgis_1 … error ERROR: for 1e5f56853e10_1e5f56853e10_1e5f56853e10_docker_postgis_1 Cannot start service postgis: driver failed programming external connectivity on endpoint 1e5f56853e10_1e5f56853e10_1e5f56853e10_docker_postgis_1 (91464afbee8bf7212061797ec0f4c017a56cc3c30c9bdaf513127a6e6a4a5a52): Error starting userland prStarting docker_etl_1 … […]

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