Docker: view running containers with links

I use docker-compose to create a few containers and create links between them. Assume I have a container called a running which has a link to b which is also running. Can I easily inspect running containers to see which containers link to which? I no

When to use Docker-Compose and when to use Docker-Swarm

I'm trying to understand the differences or similarities between D-Compose and D-Swarm. By reading the documentation I have understood that docker-compose provides a mechanism to bind different containers together and work in collaboration, as a sing

Cassandra Docker-compose multi-host file

I am fairly new to playing around with Docker so hopefully this is all my fault, but I am trying to get a multihost Apache Cassandra ring setup using Docker Compose. I have the following docker-compose.yml file version: '2' services: cassandra-1: hos

Check mem_limit in a docker container

After some crashes with a docker container with a too low mem_limit, how can i check in a container the mem_limit of this container? I want to print an error message on startup and exit if the mem_limit is set to low.The memory limit is enforced via

Composer does not work with Dockerfile using FROM

Right now, I am using a docker-compose file that contains, amongst other stuff, a few lines like this. This executes without any sort of problem. It deploys perfectly and I'm able to access the web server inside through the browser. container: comman

Docker container closes immediately despite running Service

Similar questions seem to exist but none of them with clear answer (at least not to me). I've an LDAP Server inside a container which comes with bin/start-ds file. The problem is the container exits as soon as the shell script is finished. I'd unders

How to deal with the state & ldquo; Exit 0 & rdquo; in Docker

I have build a Docker image and afterwards run a container using Docker Compose. The following command will do the job for me: docker-compose up -d I have restarted the PC and now I want to start the previous container that I've created before. So I

Dockerize ASP Classic on IIS

Microsoft has been investing in running docker on windows. Is it possible to run a legacy ASP Classic application on IIS through Docker? How? https://hub.docker.com/r/microsoft/iis/I finally got this all working. It was a lot more complex than runnin

Docker-compose: the database is not initialized

I have a problem with docker-compose and mysql: docker-compose.yml version: '2' services: db: image: mysql volumes: - "./sito/db/:/var/lib/mysql" ports: - "3306:3306" restart: always environment: MYSQL_ROOT_PASSWORD: app: depends_on: -

Use Docker Compose to create multiple containers

I am completely new to Docker. I have a sonarqube image. I wrote a sample Docker Compose file and ran the image. Everything is working fine. Now I want to create 5-6 containers using Docker Compose. How can I do this? This is my sample YAML file: ver

Sharing the ip container and the port on the hosts

We have a set of docker containers spread across the several hosts. Some containers are part of the same logical group, i.e. network so containers should be able to talk directly, accessing each other IP and Port (which is randomized by docker). The

Unable to connect to the Docker daemon on Mac OS X

I would like to run multi-container application using docker-compose on Mac OS X El Capitan (v10.11.2). However, the command $ docker-compose up command complains that it can't connect to the Docker daemon. ERROR: Couldn't connect to Docker daemon -

How can i pass an argument with docker-dial up

I have a docker-compose.yml file and in the terminal I am typing docker-compose up [something] but I would also like to pass an argument to docker-compose.yml. Is this possible? I've read about interpolation variables and tried to specify a variable

Docker does not compose mounting volumes

Just setup docker toolbox in Windows 10 and I am having a little issue with my docker containers. When I do docker-compose up, the instance will start but nothing is mounted in my /var/www/html directory. If I open Kitematic I see the container and w

Permission denied when mounting the Docker volume in OSX

I'm at my wit's end with this, so hopefully you folks can help me. In OSX 10.11.2 with docker-machine, I've got a docker-compose file that should build a local Dockerfile and attach a MySQL container to it. The MySQL container should mount a local fo

docker-compose wordpress mysql connection refused

I've created a small docker-compose.yml which used to work like a charm to deploy small WordPress instances. It looks like this: wordpress: image: wordpress:latest links: - mysql ports: - "1234:80" environment: WORDPRESS_DB_USER: wordpress WORDP

Docker Swarm - Plan the container on each machine

I'm currently trying to spawn a container instance of Redis separately on each cluster machine using Docker Swarm/Compose. I'm currently using 4 machines for the example. Using the affinity labels, the idea was to make sure two redis instances wouldn

Docker Compose Wordpress Example

I have been following the Quickstart Guide: Compose and Wordpress and can't get it to work. I think it has something to do with my directory structure. After running all the steps I had a sub-directory called wordpress but I think all of my code refe

How to mount local volumes in the docker machine

I am trying to use docker-machine with docker-compose. The file docker-compose.yml has definitions as follows: web: build: . command: ./run_web.sh volumes: - .:/app ports: - "8000:8000" links: - db:db - rabbitmq:rabbit - redis:redis When running

Understand ports and links in the docker composer

From my understanding of docker compose / fig, creating a link between two services/images is one main reason if you do not want to exposes ports to others. like here db does not expose any ports and is only linked: web: build: . links: - db ports: -

how to skip a container when i run `docker-dial rm`

I have four containers that was node ,redis, mysql, and data. when i run docker-compose rm,it will remove all of my container that include the container data.my data of mysql is in the the container and i don't want to rm the container data. why i mu

Docker-Compose: Initialize vs. Run

I'm migrating an existing rails application to docker and docker-compose. There are a few scripts that need to run only at the creation of the containers, for instance a script that copies the prod db into a volume and and indexes it in Elasticsearch