Docker is installed but Docker Compose is not ? why?

I have installed docker on centos 7. by running following commands, curl -sSL | sh systemctl enable docker && systemctl start docker docker run hello-world NOTE: helloworld runs correctly and no issues. however when i trying to run docker-compose (docker-compose.yml exists and valid) it gives me the error on Centos only (Windows version works […]

Docker-Composer exited with code 0

When I start docker-compose up the Ubuntu container exits with ubuntu exited with code 0. When I run docker run -d -ti -p 80:80 -v ~/sph/laravel52:/www/laravel ubuntu, all works fine. How can I replicate this behavior using Docker Compose? This is my Dockerfile: # Version: 0.0.1 FROM ubuntu:15.04 ENV DEBIAN_FRONTEND noninteractive #INSTALL ALL RUN apt-get […]

Single file volume mounted as directory in Docker

Docker documentation says that it’s possible to mount a single file into a Docker container: The -v flag can also be used to mount a single file – instead of just directories – from the host machine. $ docker run –rm -it -v ~/.bash_history:/.bash_history ubuntu /bin/bash This will drop you into a bash shell in […]

Running a script inside a docker container using shell script

I am new to Docker technology,I am trying to create a shell script for setting up a docker container, my script file looks like following #!bin/bash docker run -t -i -p 5902:5902 –name “mycontainer” –privileged myImage:new /bin/bash Running this script file will run the container in a newly invoked bash. Now i need to run […]

Couldn't connect to 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 – you might need to run docker-machine start default. Only after executing $ eval “$(docker-machine env default)” […]

Deploying Java webapp to Tomcat 8 running in Docker container

I am pretty new to Tomcat and Docker – so I am probably missing a Tomcat fundamental somewhere in this question. What I am trying to do is build a Docker container that runs a SpringBoot Restful web service that just returns some static data. This is all running on OSX so I am using […]

How to access host port from docker container

I have a docker container running jenkins. As part of the build process, I need to access a web server that is run locally on the host machine. Is there a way the host web server (which can be configured to run on a port) can be exposed to the jenkins container? EDIT: I’m running […]

error starting docker daemon on ubuntu 14.04 (Devices cgroup isn't mounted)

I followed docker instructions to install and verify the docker installation (from I tried on 2 Ubuntu 14.04 machines and on both I got following error when starting docker daemon: $ sudo docker daemon INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) INFO[0000] [graphdriver] using prior storage driver “aufs” INFO[0000] Option DefaultDriver: bridge INFO[0000] Option […]

how to detach from a docker container

This problem is quite similar like this, but I am still having problems: I run a container with: docker run -d CONTAINER then I attach to it with docker attach NAME but I cannot exit it, not with CTRL-C, nor with CTRL-P + CTRL-Q (like suggested in the similar question above) I have to kill […]

From inside of a Docker container, how do I connect to the localhost of the machine?

So I have a Nginx running inside a docker container, I have a mysql running on localhost, I want to connect to the MySql from within my Nginx. The MySql is running on localhost and not exposing a port to the outside world, so its bound on localhost, not bound on the ip address of […]

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