Tag: docker compose

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

How can I connect a PHP container with nginx container by using docker-compose?

I’m trying to create a simple LAMP stack in a Docker enviroment. It worked by running a third-party container phpdockerio/php71-fpm:latest, but I wanted a custom PHP container with XDebug installed, for the moment. My problem is that, if I execute docker-compose up, the PHP container exit after startup before my webserver container can make usage […]

Merging host and container volume contents in docker

I have a project with a docker image whose volume contains contents on start up. Are there any methods to MERGE the contents of both host and container on the volume yet keep the host contents persistent over in the container? this is my compose.yml services: db: image: mysql environment: MYSQL_DATABASE: ninja MYSQL_ROOT_PASSWORD: pwd app: […]

Access Docker container running in Vagrant

Hi I’m using vagrant and docker-compose to run a simple web app. It works fine on OSX, but when doing it in a vagrant box (ubuntu/trusty64) it won’t work. I don’t want to use the docker provider for vagrant, since I’m testing this for another type of deployment. This should work since I’m doing the […]

docker compose inside docker in a docker

I am pretty new to docker and was following the documentation found here, trying deploy several containers inside dind using docker-compose 1.14.0 I get the following docker run -v /home/dudarev/compose/:/compose/ –privileged docker:dind /compose/docker-compose /usr/local/bin/dockerd-entrypoint.sh: exec: line 21: /compose/docker-compose: not found Did I miss something?

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