Mount specific EBS volume to Docker under AWS beanstalk

AWS Beanstalk can run applications from Docker containers. As mentioned in the docs ( it’s possible to write directory mappings to the EC2 volume in the “Volumes”: [ { “HostDirectory”: “/var/app/mydb”, “ContainerDirectory”: “/etc/mysql” } but, is it possible to mount specific EBS volume? F.e. I need to run db in the Docker container and […]

How to assign a name to running container in docker?

I have created container from particular image using command: $ docker run -d -P selenium/hub running container status is below: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 345df9ed5b47 selenium/hub “/opt/bin/entry_point” 5 seconds ago Up 4 seconds>4444/tcp clever_williams Here default name is “clever_williams” and I forgot to assign new name to […]

How to restart a container on docker restart (–restart=true doesn't work)?

I am using docker version 1.1.0, started by systemd using the command line /usr/bin/docker -d, and tried to: run a container stop the docker service restart the docker service (either using systemd or manually, specifying –restart=true on the command line) see if my container was still running As I understand the docs, my container should […]

Is the latest version of docker from Amazon on ec2 broken?

As of last night all our new docker deployments started failing because the latest version of docker (docker-1.3.2-1.0.amzn1.x86_64) in the amazon repo fails to start up. Steps to reproduce are: ## Launch instance with default amazon AMI yum install docker-1.3.2-1.0.amzn1.x86_64 service docker restart ### Get the following error in /var/log/docker 2014/11/26 05:14:16 docker daemon: 1.3.2 […]

Docker v1.12 can not change hostname by env variable $HOSTNAME

With previous docker versions, the command of “hostname” and “echo $HOSTNAME” returned same thing, after I changed it by sending an env variable into the image. Why I use this is that I want to insert a new host into /etc/hosts by invoking hostname or $HOSTNAME. So my service/app inside this docker can get the […]

“Caching” intermediate Docker build

I’m learning to use Docker and I’ve come across a minor annoyance. Whenever I make a change to the Dockerfile,I run docker build -t tag . which goes through the entire Dockerfile as it should. This takes a good 5-6 minutes due to the dependencies in my project. Sometimes a command that I run will […]

Kubernetes: how to use gitRepo volume?

Can someone give an example of how to use the gitRepo type of volume in Kubernetes? The doc says it’s a plugin, not sure what that means. Could not find an example anywhere and i don’t know the proper syntax. especially is there parameters to pull a specific branch, use credentials (username, password, or SSH […]

Permissions issue with Docker volumes

I want to start using Docker for my Rails development, so I’m trying to put together a skeleton I can use for all my apps. However, I’ve run into an issue with Docker volumes and permissions. I want to bind-mount the app’s directory into the container, so that any changes get propagated to the container […]

Setting up CD for a Ruby on Rails project with Bitbucket Pipelines and Docker

I’d love to set up continuous deployment in Bitbucket Pipelines for a Ruby on Rails / PostgreSQL / Sidekiq project, but I’m struggling to get my head around how it all fits together, and specifically how to get postgres working inside a Docker image. I’m very new to Docker and Pipelines. In my Googling, Docker […]

Docker: use private layers without running instance of registry

I’d like to build my own layer on top of a public Docker image. Fine, I know how to do that. However, my layer will contain proprietary code that I can’t share in a public docker image. I do, however want to be able to share it among servers inside my organization. Is my only […]

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