Developing php with docker

I’m developing a wordpress site with docker. I need to write php code, so I want to see my php errors with apache error logs. In a non docker environment I would do something like this: tail -100f /var/log/apache2/error.log With docker scenario, if I log in my apache container my apache logs are old and […]

docker with device-mapper and luks

I’m trying to have docker container stored in a luks device, but using the below command it is not working. I’m also trying to have a docker container to use (and maybe open) a luks file as a volume data, but I don’t know how to bind it to the container I have done the […]

Get and pass into container the host IP address

I have a container running a service and a rails application that is not containerized (running on the host). The service needs to call an endpoint in the rails application running on the host. I know I can start the container with the -e option and pass it an IP address. How can I get […]

Docker Compose raise an AccessDeniedExpcetion

I’m trying to compose the ELK architecture by using docker compose. The following is the compose file: version: ‘2’ services: elasticsearch_assets: image: elasticsearch volumes: – ./elasticsearch/config:/usr/share/elasticsearch/config – ./elasticsearch/data:/usr/share/elasticsearch/data – ./elasticsearch/logs:/usr/share/elasticsearch/logs command: /bin/true elasticsearch: image: elasticsearch volumes_from: – elasticsearch_assets:rw depends_on: – elasticsearch_assets And here folliwing a screenshot of the project structure: When I run docker-compose up […]

docker-compose error Unicode-objects must be encoded before hashing

I started to use docker since few days and I wanted to create a new project with multiple containers, so I tried docker-compose but when I try to launch docker-compose run river I have this stack trace : Traceback (most recent call last): File “/bin/docker-compose”, line 9, in <module> load_entry_point(‘docker-compose==1.3.0’, ‘console_scripts’, ‘docker-compose’)() File “/usr/lib/python3.4/site-packages/compose/cli/”, line […]

Docker: Unable to run shell script stored in a mounted volume

I am running Docker (1.10.2) on Windows. I created a script to echo ‘Hello World’ on my machine and stored it in C:/Users/username/MountTest. I created a new container and mounted this directory (MountTest) as a data volume. The command I ran to do so is shown below: docker run -t -i –name mounttest -v /c/Users/sarin/MountTest:/home […]

How to enable docker remote api in mac OS X?

I’m new to docker, and I want to use java api to print my docker information. I read this tutorial.I use boot2docker and print this command “boot2docker ip” to find my docker machine ip is bash-3.2$ boot2docker ip So,I use rest to connect docker.I input and it can connect to it,but show nothing.So […]

How can I get RabbitMQ running with docker?

I am trying to run RabbitMQ in my Mac via docker. Such is my Dockerfile: FROM docker_registry/repo:version RUN echo “deb testing main” >> /etc/apt/sources.list && \ wget -qO – | apt-key add – && \ apt-get update && \ apt-get install -y -q rabbitmq-server && \ rabbitmq-plugins enable rabbitmq_management && \ echo “[rabbitmq_management].” […]

Docker cannot mount volume over existing file

I am doing this on a AWS Linux Instance Client: Version: 1.9.1 API version: 1.21 Go version: go1.4.2 Git commit: a34a1d5/1.9.1 Built: OS/Arch: linux/amd64 Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.2 Git commit: a34a1d5/1.9.1 Built: OS/Arch: linux/amd64 Whenever I try to docker-compose up -d with the following docker-compose.yml (this is an excerpt) elasticsearch: […]

docker -d vs. service docker start

I’ve installed docker on a VirtualBox running Fedora 20. I’ve been having problems getting hello-world to work, and eventually discovered that I can successfully run docker run hello-world only if I start docker on the command line with /usr/bin/docker -d. If I start docker with service docker start, any docker run command I try just […]

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