Tag: docker compose

initdb: could not change permissions of directory on Postgresql container

I am new to the docker ecosystem and I am trying to spin up a simple postgres container along with a volume so it persists its data, by using a yaml composer file. The file is as follows: # Use postgres/example user/password credentials version: ‘3.3’ services: db: image: postgres environment: POSTGRES_DB: recrow POSTGRES_USER: recrow POSTGRES_PASSWORD: […]

Kibana can't reach elasticsearch

Using docker-compose v3 and deploying to a swarm: version: ‘3’ services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:5.4.1 deploy: replicas: 1 ports: – “9200:9200” tty: true kibana: image: docker.elastic.co/kibana/kibana:5.4.1 deploy: mode: global ports: – “5601:5601” depends_on: – elasticsearch tty: true I see this in the kibana service log: Unable to revive connection: http://elasticsearch:9200/ Elasticsearch service is running and can […]

Docker-compose up creates container but coudn't start it

I need to do manually, in PowerShell, what Visual Studio 2017 does automatically when creating Docker image from my solution (asp.net core web application). docker-compose -f “docker-compose.yml” -f “docker-compose.override.yml” -f “docker- compose.vs.release.yml” -p dockercompose32 up –build -d It creates new images(when I’m building from the scratch but it doesn’t rebuild old image if something in […]

What are the correct Permissions for docker in docker as another user?

I’m trying to enable my docker instance to build other docker images from a CI server. My agent spins up a container, and i have my macs docker.sock mounted into the container. /var/run/docker.sock:/var/run/docker.sock When inside the container and running as root, i am able to download and run containers: root@b6da92395273:/godata/pipelines# docker run helloworld 019300c8a437: Pull […]

Docker inter container communication not working

Hi I am new to docker I have created docker images and able to start them using docker compose. Able to access these services from browser using docker tcp IP and they can ping each other using ping command. When I tried to access the service from one another using service name in docker compose […]

Populate cassandra after Docker-compose finishes

Here’s my docker-compose.yaml: version: ‘3’ services: cassandra: container_name: cassandra image: cassandra:3.10 ports: – 9142:9042 volumes: – $PWD/src/database/migrations:/migrations depends_on: – mysql mysql: image: mysql:5.7 volumes: – ./src/database/migrations:/docker-entrypoint-initdb.d ports: – 3307:3306 restart: always environment: – MYSQL_ROOT_PASSWORD=password – MYSQL_DATABASE=leonardo – MYSQL_ALLOW_EMPTY_PASSWORD=1 And a shell script bootstrap.sh to start: #!/bin/bash set -e docker-compose -f $PWD/docker-compose.yaml down docker-compose -f $PWD/docker-compose.yaml […]

How to deploy an IPv6 container with Docker Swarm Mode or Docker Compose

In the end I’d like to have a pure IPv6 network deployed via compose or swarm mode. For now, I’d just like to have a single container deployed with IPv6 (only). I am not currently interested in routing (just container to container connectivity). My setup: OS: Centos 7 dockerd —ipv6 –fixed-cidr-v6=2001:db8:1::/64 –iptables=true –ip-masq=true –mtu=1600 –experimental=true […]

Docker + WordPress + Traefik

I’m using Docker with Traefik as reverse proxy for managing my docker instances. Now I need to add WordPress installation and I’m not able to figure out how to set it up (for http protocol it works, I’m just not able to figure out wordpress). There is docker-compose: version: “2” services: mariadb: image: wodby/mariadb:10.1-2.1.0 environment: […]

Docker-compose error when try to start

I am having a funny error when I try to run a docker-compose. I have reinstall the VM several times, everything is update and install but I cannot run a compose. $ sudo docker-compose up -d Creating network “apache2_default” with the default driver Building mysql ERROR: Error processing tar file(exit status 1): permission denied My […]

Docker compose wait for without sleep command

I’ve read lots for similar topics; For example this: Docker Compose wait for container X before starting Y etc. So, I’m trying to implement a wait for only using compose and health checks. I have only one docker-compose file. There is a section for the app and for test for this app. Test (service) can […]

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