Automated pulling from gitolite repo within docker container

FROM fedora:latest RUN yum install -y nginx git uwsgi RUN echo “nameserver” > /etc/resolv.conf RUN rm -rf /root/.ssh/ && mkdir -p /root/.ssh/ COPY /root/.ssh/ COPY id_rsa /root/.ssh/id_rsa RUN cat /root/.ssh/id_rsa* && chmod 0400 /root/.ssh/id_rsa && echo “” > /root/.ssh/known_hosts RUN mkdir -p /srv/nginx/ RUN ssh -vvv -p 49022 || true RUN git […]

Allow WordPress write access to Docker mounted folder

I have a Docker setup that works well with Ubuntu, Nginx, PHP-FPM and MySQL. WordPress can write to the uploads folder and I can edit templates online, but when I try to upgrade WordPress or plugins, it fails with: Unpacking the update… Could not create directory.: wordpress Installation Failed I have chmod 777 the entire […]

can't connect to local mysql server through socket while running db using volume

while running my db container it shows error file: !/bin/bash # This script starts the database server. echo “Creating user $user for databases loaded from $url” Import database if provided via docker run –env url=”http:/” echo “Adding data into MySQL” /usr/sbin/mysqld & sleep 5 curl $url -o import.sql Fixing some phpmysqladmin export problems sed […]

Call Docker API without docker daemon

I was wondering is there a way to make a call to Docker API without docker daemon. I went through their docs and a little bit of source code behind Docker CLI and couldn’t find an answer. I want to make a HTTP/HTTPS call to Docker API directly! I don’t want to install docker CLI. […]

When I run the image on my PC for Docker, I got below error all the time

This is my first time to learn the Docker, I follow the steps as Docker’s instructions mentioned, but wen I run below command in the Boot2Docker Start: $ docker run hello-world, I got below error response: An error occurred trying to connect: Post Service Unavailable

Vagrant synced_folder not working with docker provider build_dir (Windows)

I don’t succeed providing a dockerfile via Vagrant on Windows. If I use an image (e.g. d.image = “phusion/baseimage” instead of build_dir everything is fine – but when building from a dockerfile (as shown in the vagrantfile below) – I get the following error (of course I have a Dockerfile in infrastructure/ssh-docker!): PS C:\privat\cloud-backup\cloud-backup-for-podio> vagrant […]

Docker-machine Cannot connect to the Docker daemon. Is the docker daemon running on this host?

I am using Docker on mac os x 10.10.5 I am having all sorts of issues with permissions primarily. I was able to create sudo docker-machine create –driver virtualbox test then the result of sudo docker-machine env test export DOCKER_TLS_VERIFY=”1″ export DOCKER_HOST=”tcp://″ export DOCKER_CERT_PATH=”/Users/michaelaubry/.docker/machine/machines/test” export DOCKER_MACHINE_NAME=”test” # Run this command to configure your shell: # […]

Atomic OS/Core OS for large scale Mesos cluster?

I’m in the process of planning a proof-of-concept setup of Mesos, Kubernetes (or maybe Marathon and/or Aurora) and Docker. The idea is to provision a cluster in our datacenter as a Mesos cluster and use e.g. Kubernetes to orchestrate the Docker containers. For Docker and Kubernetes there are atomic host OSes like Project Atomic and […]

MongoDB Script with rs.add() Not Executing As Expected

For some reason this very basic script does not run as expected: rs.initiate(); rs.add(“ip-10-0-1-11”); rs.add(“ip-10-0-1-12”); When I call it (after a fresh spin-up of mongod) like so: docker exec mongodb mongo localhost:27017/test /script/path.js I only see the addition of the second host. rs0:PRIMARY> rs.status() { “set” : “rs0”, “date” : ISODate(“2015-12-14T20:27:10.124Z”), “myState” : 1, “term” […]

Logging from one docker container to another

I think I am missing something linking docker containers. I have 2 containers, 1 running Jenkins and 1 running elk stack. From the host I can easily get logs to flow to elk.. and linking the Jenkins container to the elk one via –link gets some generic events into the elk stack. But want I […]

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