Tag: docker compose

docker-compose up for only certain containers

I have a docker-compose.yml which contain several containers. Three of them are for my app (client, server and database) and the rest are for various dev tools (e.g. psql, npm, manage.py, etc). When I do docker-compose up all of them are started, but I only want the three main ones to start. Because of the […]

Docker named volumes vs DOC (data-only-containers)

Up to recent version of Docker (v1.10), we were thought that we can use DOC: data-only containers. So I would create such DOC (based on e.g. busybox) and use –volumes-from to link it to my container. You can still read about this in Docker documentation. With new version of docker, it is said that instead […]

Local hostnames for Docker containers

Beginner Docker question here, So I have a development environment in which I’m running a modular app, it is working using Docker Compose to run 3 containers: server, client, database. The docker-compose.yml looks like this: ############################# # Server ############################# server: container_name: server domainname: server.dev hostname: server build: ./server working_dir: /app ports: – “3000:3000” volumes: – […]

Rails app in docker container doesn't reload in development

I followed this docker-compose tutorial on howto start a rails app. It runs perfectly but the app isn’t reloaded when I change a controller. What can it be missing?

Docker how to clean partial failed downloads for images?

I am using docker toolbox in OS X. When I run docker-compose pull and the network cuts out, the download does not resume after I fix the issue. Is there a way to purge or invalidate partial downloads for docker images?

Ubuntu and updating Docker

I am trying to run the latest stable version of docker and docker-compose. I am following the instructions on https://docs.docker.com/engine/installation/linux/ubuntulinux/ Apparently the current version of docker-compose is 1.7. Yet, after running through the documentation, installing docker-engine, I then get: $ docker-compose –version docker-compose version: 1.4.0 And $ docker –version Docker version 1.11.1, build 5604cbe When […]

Docker Volume not mounting any files

I’m trying to mount my source files to a directory in docker located at /var/dynamo. I’d like to be able to run Docker locally and use my local files as I am working. with the run command: docker run -v $(pwd):/var/dynamo -d -t -p 8001:8001 –name dynamo davesrepo/dynamo with my Dockerfile FROM python:3.5.1 WORKDIR /var/dynamo […]

Docker Compose circular container linking

I’m in the process of attempting to containerize our development environment with docker. This includes a mix of Google Appengine projects as well as services that are being eventually hosted in Google Compute engine within a containerized vm. Our current development environment bootstrapping scripts bring up elasticsearch and nginx within boot2docker and the other applications […]

Docker Machine + Docker Compose + Volumes on Ubuntu

So i have beeen using docker-compose in development for a while now on my Ubuntu 14.04 LTS host machine with a local VirtualBox provider (boot2docker inside it). Only recently i decided to try out docker-machine (because of the integration with Pycharm) but i am running into some issues like for example when i save some […]

How to use volume in docker compose for postgres?

Here is the image I am using. I named it posgres_test If I run the image individually docker run -i -t -v=”test_volume:/var/lib/postgresql” -p 5432:5432 posgres_test I can access it with psql -h 192.168.99.100 -p 5432 -U pguser -W pgdb Or I can access it with my golang app // host is set to postgres db, […]

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