Set up mapping in Elasticsearch during Docker run

I am going to use official Elasticsearch image. What I want to do is set up the mapping of indexes during Docker run. So I need to execute right after the container is started. curl -XPUT localhost:9200/_template/http_request -d {…..} So I can not do it in Dockerfile or can I? Thank you

the input device is not a TTY

I am running the following command from my Jenkinsfile, however, I get the error the input device is not a TTY docker run -v $PWD:/foobar -it cloudfoundry/cflinuxfs2 /foobar/script.sh Is there a way to run the script from the Jenkinsfile without doing interactive mode. I basically have a file called script.sh that I would like to […]

How Do I Set Hostname in Docker Compose?

In my docker-compose.yml file, I have the following. However the container does not pick up the hostname value. Any ideas? dns: image: phensley/docker-dns hostname: affy domainname: affy.com volumes: – /var/run/docker.sock:/docker.sock

Is there a way to restrict untrusted container scheduler?

I have an application which I’d like to give the privilege to launch short-lived tasks and schedule these as docker containers. I was thinking of doing this simply via docker run. As I want to make the attack surface as small as possible, I treat the application as untrusted. As such it can potentially run […]

Docker Processes Shown on Host Process List

I was setting up a Selenium server using docker, basically following this github tutorial. I have no problem setting up the server, but I noticed that the processes that I started inside the docker image actually got shown up on my host process list. As you can see in the screen shot, the docker ran […]

docker-machine connect to existing machine

I have a docker swarm all hosted on AWS, created basically along the lines of this tutorial. To deploy our code, I need to be able to access this swarm separate of the computer where I created these instances. I don’t see anywhere in the docs for the docker-machine amazonec2 driver where I can use […]

Slow django model instance creation with Docker

I have django application with some model. I have manage.py command that creates n models and saves it to db. It runs with decent speed on my host machine. But if I run it in docker it runs very slow, 1 instance created and saved in 40-50 seconds. I think I am missing something on […]

How to handle IP addresses when linking docker containers with each other using docker-compose?

I am using docker-compose to build a complete development stack. The application needs a mysql server to work. The mysql server is an external container setup by docker-compose: mysql: image: mysql:5.6 volumes: – /data/mysql:/var/lib/mysql – ./docker/mysql.d:/etc/mysql/conf.d ports: – “3306:3306” environment: MYSQL_ROOT_PASSWORD: password The application has its own docker-compose.yml and references the mysql container: my-application: build: […]

How do I know when my docker mysql container is up and mysql is ready for taking queries?

I am deploying a few different docker containers, mysql being the first one. I want to run scripts as soon as database is up and proceed to building other containers. The script has been failing because it was trying to run when the entrypoint script, which sets up mysql (from this official mysql container), was […]

Docker image for Windows

Has any one tried building a docker image for Windows (7.1/8)? The closest answer available for me is from ScottGu’s Blog. See here http://weblogs.asp.net/scottgu/docker-and-microsoft-integrating-docker-with-windows-server-and-microsoft-azure But I was wondering, is there any one else tried to build the same?

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