Artifactory bad gateway error

I am trying to use artifactory as a docker registry. But pushing docker images gives a Bad Gateway error. Following is my nginx configuration upstream artifactory_lb { server; server backup; server; } log_format upstreamlog ‘[$time_local] $remote_addr – $remote_user – $server_name to: $upstream_addr: $request upstream_response_time $upstream_response_time msec $msec request_time $request_time’; server { listen […]

Docker automated build not showing Dockerfile after completion

I setup some automated builds in github and the Dockerfile tab is showing empty for some reason. The builds are successful and I can see the dockerfile contents in the build details, but for some reason its not populating the Dockerfile tab. Am I missing a step somewhere?

nginx as proxy to my mysql server in docker

I’m working with a server in the cloud with N dockers containers, in the server I have one nginx that redirect based on the domain to my docker containers, I can perfectly redirect my http traffic, but I’m getting troubles with when it is mysql since it uses a protocol different to http, I tried […]

Docker Share Volume and edit files

I’m pretty new to Docker and I’m stuck in sharing volumes. The situation is this: Configure the container (apt-get install, …) Copy files from host to container (ADD files dest) Generate some file in dest folder trough scripts Run the container with shared volume (sudo docker run -v /path/to/xos:/opt/xos -p 9999:8000 –add-host=”″ xos) The container […]

Docker build causes vagrant image to lose connection

I have a vagrant image in which i’m performing some docker builds on an npm module. Almost every few builds my vagrant image dies with the error [vagrant@vagrant vagrant]$ docker build –tag=”test-builder” . Connection to closed by remote host. Connection to closed. when i ssh into the image and look back in /vagrant […]

slow pg_restore on docker container startup

I have dockerized my PostgreSQL DB (about 4GB of data). It is working fine on my notebook (linux, 2core CPU, SSD, 8GB RAM). I am trying to move it using docker hub to free AWS EC2 t2.micro. On startup of container, there are executed some scripts, that set up structure of schema and tables and […]

Freegeoip with Docker Cloud

I am using for geo location on my website. To reach higher reliability, I would like to create a local copy of the service on a separate server. I have set up Docker cloud with Amazon AWS and installed this repository: If I enter e.g. “curl localhost:8080/json/” in the Docker terminal, it correctly […]

How to insert dockerised cron process in a docker-compose built LEMP stack?

I have a LEMP stack which is built by this docker-compose file: cadvisor: image: google/cadvisor:latest container_name: lemp_cadvisor ports: – “8080:8080” volumes: – “/:/rootfs:ro” – “/var/run:/var/run:rw” – “/sys:/sys:ro” – “/var/lib/docker/:/var/lib/docker:ro” base: build: ./base container_name: lemp_base volumes: – /home/core/server-lemp/www/:/var/www/:rw phpmyadmin: build: ./phpmyadmin container_name: lemp_phpmyadmin links: – base volumes: – /var/www/phpmyadmin – ./phpmyadmin/var/www/phpmyadmin/ mariadb: build: ./mariadb container_name: lemp_mariadb […]

Can i create log file during/after building a container

Normally it is possible to create log file of running container but i want create a log file of a build container is it possible.If yes, then how to create log file?

Unable to run shell command with docker?

I have installed docker on Ubuntu 14.04. Now when i am trying to create one test job in docker, i am getting the below error: $ sample_job=$(docker run -d busybox /bin/sh -c “while true; do echo Docker; sleep 1; done”) –bash: command substitution: line 228: syntax error near unexpected token `do’ -bash: command substitution: line […]

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