FAQ Database Discussion Community


How to pull private docker image from docker to new machine

docker,dockerhub
I have a new machine with a docker engine. I want to pull down a private docker image from docker.com. I can pull down any public docker image, no problem. [email protected]:~$ docker pull nginx latest: Pulling from nginx 39bb80489af7: Pull complete df2a0347c9d0: Pull complete [...] But my private image fails:...

Strategy to persist the node's data for dynamic Elasticsearch clusters

elasticsearch,docker,mesos,marathon
I'm sorry that this is probably a kind of broad question, but I didn't find a solution form this problem yet. I try to run an Elasticsearch cluster on Mesos through Marathon with Docker containers. Therefore, I built a Docker image that can start on Marathon and dynamically scale via...

Vagrant + puppet + docker

mysql,docker,vagrant,puppet
I'm new with this technologies but I want to learn about automation and containers stuff. I read some documentation about this 3 products and I want to know if is possible to automate almost everything in a large environment using this products. Vagrant for deploy VMs (let's say 10 at...

Simple docker deployment tactics

bash,docker,dockerfile
Hey guys so I've spend the past few days really digging into Docker and I've learned a ton. I'm getting to the point where I'd like to deploy to a digitalocean droplet but I'm starting to wonder about the strategy of building/deploying an image. I have a perfect Dev setup...

Why is /etc/hosts file empty in my docker container?

docker
I created a minimal docker container, following https://github.com/snoyberg/haskell-scratch containing a single Haskell application. When run the application works fine except it cannot resolve hosts from /etc/hosts because it is empty which implies linking does not work correctly (or at least I need to use numeric addresses which is impractical...). I...

Saving docker container image

jenkins,docker
I created a new docker container using jenkings image This is the command I ran docker run -p 8080:8080 -v /var/jenkins_home jenkins I created a few jobs on the jenkins instance and commited the image docker commit 7b903d061654 test When I run the image I created using the command (below)...

Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?

docker,google-compute-engine,kubernetes,aerospike
I would like to run Aerospike cluster on Docker containers managed by Kubernetes on CoreOS on Google Compute Engine (GCE). But since GCE does not permit multicast, I have to use Mesh heartbeat as described here, which has to be set up by specifying all node's IP addresses and ports;...

docker is using the v1 registry api when it should use v2

docker,coreos,docker-registry
I'm trying to use a self hosted docker registry v2. I should be able to push a docker image, which does work locally on the host server (coreos) running the registry v2 container. However, on a separate machine (also coreos, same version) when I try to push to the registry,...

Kubernetes minion not completely connecting

docker,coreos,kubernetes,etcd,flannel
I have a dev kubernetes cluster setup where I have a minion running kube-proxy and kubelet. Both only start if it can connect to the master's apiserver, which it can. Howerver I am getting error updating node status, will retry: error getting node "10.211.55.126": minion "10.211.55.126" not found I notice...

Where does kubernete's kubelet create service environment variables?

node.js,docker,service-discovery,kubernetes
I'm creating a kubernetes cluster, and in it I have several services. I know based on https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/services.md#discovering-services I have two options. use the environment variables set by the kubelet. use skydns I want to try to use the environment variables first before I go adding another dependency into the mix....

How can I debug my docker container with phpStorm

php,docker,phpstorm,xdebug,boot2docker
Under the following IP my Container run successful in my Webbrowser http://192.168.99.100:32775 I have also create a volume to share files between my container and my filesystem docker run --name lampf -d -p 32775:80 -v /Users/sja/Sites/lamkepf2:/var/www/html --link=lampf_db:db codinglimo/apache_php540_gs_imgmck_pdflib9 Now I install also xDebug successful in my container with the following...

ElasticBeanstalk with Docker: how to use create-environment from aws cli

docker,elastic-beanstalk,aws-cli
I'm trying to use aws cli to create a new environment for Docker. I can do this easily enough through the aws web console, but there I have to choose from the dropdowns "type: WebServer" and "configuration: Docker". I can't see where these options exist in the aws elasticbeanstalk create-environment...

docker-machine without TLS verification

docker,boot2docker,docker-machine
I'm using docker-machine v0.3.0-RC-1 and I need create a host on virtualbox without TLS verification, but I don't know if it's posible to do it? Anybody know a ligth way to do it?

Use Dokku Environment variables in DockerFile

docker,environment-variables,dockerfile,dokku
I'm tring to use Dokku Environment variables in DockerFile but with no success. Dokku Env is set with: dokku config:set www NR_APP=AppName In DockerFile, i would like to put this NR_APP to a file with: RUN sh -c 'echo "newrelic.appname=\"$NR_APP\"" >> /etc/php5/apache2/conf.d/newrelic.ini' But it doesn't work, the result in file...

Docker: understanding ENTRYPOINT and CMD instructions

docker
I'd like to ask some question about ENTRYPOINT and CMD instructions available for use in a Dockerfile. Providing that I'm mounting local directories as volumes in a container using fig or docker-compose. When exactly are ENTRYPOINT and CMD instructions executed? After the volumes were mounter or before? If I pass...

Best practice for docker webserver, muliple layers or single layer?

webserver,docker
I want to build a docker webserver, serving Nginx, PHP and MySQL for multiple websites. Would it be better to run a single docker container for each component, ie one for MySQL, one for Nginx, One for PHP and another for my site data. Or Run multipul containers that each...

Docker: how to send a signal from one running container to another one?

docker,signals
I'm using docker, and I would like to know: Is it possible to send a signal, from a running container to another running container ? More precisely, I would like to send SIGUSR1 to python program. I already made a bash script to get pid of my python process and...

Configure Dockerfile to set AWS configurations

node.js,amazon-web-services,docker
I've just started looking at Docker. I have a node app that resizes and image and then sends an SQS message to aws when finished. I have managed to create a docker image of my app, copying it from my local machine, but run into the issue that I can't...

ctrl+G in erl doesn't work

unicode,encoding,utf-8,erlang,docker
I'm trying to interconnect erlang nodes, but entering ctrl+G doesn not work: Eshell V6.4.1 (abort with ^G) 1> ^G Eshell V6.4.1 (abort with ^G) 1> ^G Eshell V6.4.1 (abort with ^G) 1> ^G Eshell V6.4.1 (abort with ^G) any idea why this can happen? I was thinking about locale settings,...

Moving Docker Containers Around

docker
I would like to use this Docker container: https://registry.hub.docker.com/u/cptactionhank/atlassian-confluence/dockerfile/ My concern is that if I have to wind up moving this docker container to another machine (or it quits for some reason and needs to be restarted) that all the data (server config and other items stored on the file...

How to edit file after I shell to a docker container?

docker
I successfully shelled to a docker container using docker exec -i -t 69f1711a205e bash Now I need to edit file and I don't have any editors inside [email protected]:/# nano bash: nano: command not found [email protected]:/# pico bash: pico: command not found [email protected]:/# vi bash: vi: command not found [email protected]:/# vim...

Docker, no IPAddress in docker inspect

docker,boot2docker
I m using the following dockerfile : FROM ubuntu:14.04 MAINTAINER xxx xxx<[email protected]> # SSH RUN apt-get update && apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:xxxxxxx' | chpasswd RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # SSH login fix. Otherwise user is kicked off after login RUN sed...

What is the '.save_docker/' folder? Can I delete it?

linux,docker
After using docker, I found my disk space had been eat a lot. I searched google to resolve the problem, found a post said this is because of aufs & devicemapper. Now I found a folder named .save_docker in /home. In this folder, there is a folder names aufs, the...

ldapadd gives “no global superior knowledge” on default config

ldap,docker,openldap
Background: I'm installing a Prosody XMPP server and Kaiwa webclient on a DigitalOcean droplet. Kaiwa has a one-click deploy-to-DO-droplet tool using Docker that I tried first, but it didn't work - probably because I'm using the 512MB minimum DO VPS and it ran out of memory with half of the...

How to find the name of intermediate Docker images?

docker,dockerhub
When I run docker images -a I get a lot of intermediate images. The repo and tag are <none>, but the image IDs are unique. All these images must have come from Docker hub. How can I find out the real name for these images? Also, why do so many...

How do I turn sendfile off in a docker instance

linux,nginx,configuration,docker,sendfile
I have a nginx docker instance running. In the docker instance there is a file called /etc/nginx/nginx.conf It has the following settings http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" access_log /var/log/nginx/access.log main; sendfile on; .... } I run the docker instance by running with...

Docker Compose with one Terminating Container

docker,exit,exit-code,docker-compose,fig
I'm having a docker compose setup of a database container, an application container and one container which pre-loads the database with necessary data. I want to start all of the containers together with docker-compose up while the pre-loading container terminates after it is one with exit 0. But terminating this...

Not able to access Kibana running in a Docker container on port 5601

elasticsearch,docker,dockerfile,kibana-4
I have built a docker image with the following Docker file. # gunicorn-flask FROM devdb/kibana MAINTAINER John Doe <[email protected]> ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN apt-get install -y python python-pip python-virtualenv gunicorn # Setup flask application RUN mkdir -p /deploy/app COPY gunicorn_config.py /deploy/gunicorn_config.py COPY app /deploy/app RUN pip install...

Why are images created and why doesn't Docker clean them up?

docker
I know how to removed containers and images. What I don't understand is why those <none> images are created in the process of a docker build -t my_container . or a similar command. Running docker images will give me something like that: REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE go_dev...

Installing Python 3 Docker Ubuntu error command 'x86_64-linux-gnu-gcc

python,python-3.x,amazon-web-services,docker
I'm trying to create a dockerfile that uses Python 3. FROM ubuntu:14.04 RUN apt-get update RUN apt-get install -y python3 python3-dev python-pip RUN apt-get install -y libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libfreetype6-dev zlib1g-dev RUN cd /var/projects/apps && pip install -r requirements.txt I get the error fatal error: Python.h: No such file...

How to properly set VOLUME and CMD instructions in Postgres Dockerfile?

postgresql,docker,dockerfile
I have a working Postgres Dockerfile that I modify and unfortunately after applying modifications Postgres container stops working as expected. I'd like to ask your for explanation of what I'm doing wrong. Working example Here's the Postgres Dockerfile that works and which I modify: # Use ubuntu image FROM ubuntu...

PyCharm add remote Python interpreter inside the Docker

python,docker,pycharm,remote-debugging,boot2docker
So I have set up a docker on my laptop. I'm using Boot2Docker so I have one level of indirection to access the docker. In PyCharm, I can set a remote python interpreter via SSH but I'm not sure how to do it for dockers that can only be accessed...

Ensure nginx master process stays running

nginx,docker,supervisord
I am currently trying to setup a docker container using ubuntu:14.04 as my base image, with nginx and gunicorn/django/celery running inside. I am using supervisor to start all of the processes, and have tested to make sure gunicorn is relaunched when it goes down. However, I can't figure out how...

Docker: how to set up file ownership in a data-only container?

docker,dockerfile,docker-compose
I've dockerized a PHP application using a data-only container. I used this (docker-symfony) containers stack. This is a simple definition of a data-only container: FROM debian:jessie MAINTAINER Vincent Composieux <[email protected]> VOLUME /var/www/symfony Everything plays really well apart from ownership and permissions. I've noticed that when I mount volumes (my local...

Docker container returns “unknown” for “uname -p” command

docker,ubuntu-14.04
I just installed a brand new Ubuntu Server 14.04.2 LTS and also installed docker to run containers. I am facing some problems with it. A container will be used to run Jenkins and some of its jobs runs scripts to install Android NDK/SDK. These scripts are checking for the platform...

How to customize the configuration file of the official PostgreSQL docker image?

postgresql,docker
I'm using the the postgres official image https://registry.hub.docker.com/_/postgres/. And now I'm trying to customize its configuration. For this purpose the command sed is used, e.g. to change the max_connections: sed -i -e"s/^max_connections = 100.*$/max_connections = 1000/" /var/lib/postgresql/data/postgresql.conf I tried two methods to apply this configuration. The first is by adding...

Collect only from STDERR when using Docker syslog logging driver

docker,syslog
We are running our Docker containers with the syslog driver as follows: docker run -d --name <<container_name>> --log-driver syslog <<image_name>> This makes the Docker daemon to forward messages from both STDOUT and STDERR to syslog. Is there a way for me to pick only STDOUT or only STDERR to be...

Docker Data Volume Container - Can I share across swarm

docker,large-data-volumes,docker-swarm
I know how to create and mount a data volume container to multiple other containers using --volumes-from, but I do have a few questions regarding it's usage and limitations: Situation: I am looking to use a data volume container to store user uploaded images in for my web application. This...

How to see a linked container as localhost?

docker,docker-compose
I have this two containers : api: image: social-learning ports: - "3000:3000" command: bundle exec rails s -p 3000 -b '0.0.0.0' volumes: - ../api:/app expose: - "3000" web: image: social-learning-frontend ports: - "4200:4200" - "9000:9000" command: ember serve -p 4200 volumes: - .:/app links: - api expose: - "3000" When...

What does docker use for (image) versioning?

git,docker
I am curious. It looks like git to me, but I can't find sources that confirm that. Or does it have it's own revision control system ?

is anyway to get all container's name?

docker
I want to display state of all running container,so i could achieve it like follow: docker stats $(docker ps -q) CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O 04cdc87ba3cf 0.03% 468.8 MiB/3.784 GiB 12.10% 6.827 KiB/10.2 KiB 7d30fcbd8b36 0.09% 88.09 MiB/3.784 GiB 2.27% 28.23 KiB/289.2 KiB a09ef63b2c59 97.94% 271.5...

How to tag Docker images with a Git tag in Jenkins?

git,jenkins,docker,jenkins-plugins
Hopefully I'm just missing something simple, but I cannot figure out how to tag a Docker image with a Git tag in a Jenkins job. I have been using the Docker Build and Publish plugin for building my images, but it's tag input only seems to accept token macros for...

Is there a way to tell kubernetes to update your containers?

automation,docker,kubernetes
I have a kubernetes cluster, and I am wondering how (best practice) to update containers. I know the idea is to tear down the old containers and put up new ones, but is there a one-liner I can use, do I have to remove the replication controller or pod(s) and...

Docker dm_task_run failed error

docker
Today I first time installed docker on Fedora 21. Now, I need change location of docker images folder from default /var/lib/docker. After copying files (devicemapper subfolder skipped, docker service stopped) and changing /etc/sysconfig/docker (adding -g option), I run docker service again, no problems, devicemapper/metadata created. Next, I'm trying to pull...

docker run python from container

docker
I took over a project which requires the usage of docker to setup the development environment. The project wiki is primarily written for use with coreos and one of the setup steps involved running a python script. I'm using boot2docker and realised that there's no python pre-installed with the tcl....

Mount Github link as docker volume

github,docker,bitbucket
Is there any way to mount github or other repo's http link as docker volumes, so that when I start my docker container, it would be running with the new code which I've pushed to github or bitbucket ?

docker set iptables options in docker-compose.yml

docker
I'm using docker-compose for managing containers. How to I turn off iptables (set --iptables=false for docker) when starting via docker-compose up?...

docker networking - Could not discover any bindable network interfaces

linux,osx,networking,docker,boot2docker
I am trying to execute a jar from within a docker container which tries to start a service and detects an IP and port of a remote service and tries to connect to it. But as soon as I do that I get this exception - Exception occured: org.teleal.cling.transport.spi.InitializationException: Could...

Where is my Docker Wordpress Website Storing Data?

mysql,wordpress,docker
I currently have a Wordpress container set up in Docker, and have it linked to a MySQL database on the same machine (that is not in a Docker container). I played around with editing the website in my browser, deleting the Wordpress container, and creating a new one linked to...

oh-my-zsh installation returns non zero code

docker,oh-my-zsh
I'm trying to install oh-my-zsh as part of a Docker build (using a Dockerfile). Here's the dockerfile line in question: RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh and the error I get is: The command [/bin/sh -c wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh] returned a non-zero code: 1 Full error...

Docker inspect with unix:///var/run/docker.sock (in Java or Scala)

java,scala,docker
Docker has lots of interesting information available via unix:///var/run/docker.sock I have been able to map this to a port and I can access /containers/json with GET requests to the port. But... this is not exactly secure. How can I access /containers/json from this raw socket file (in Java or Scala)?...

Server and client network apps simulated in one machine

docker,systemd
I would like to simulate a server machine and several client machines operating over a vpn. I would like to test the server application as well as the client applications all on one machine. Would I be able to do this with a few docker applications running on my machine...

Docker ignores iptable rules when using “-p :

docker,iptables
Just realized a few days ago that Docker seems to bypass my iptable rules. I am not incredible experienced with Docker nor iptables. Tried a lot of different things the last days. Also saw that there was big change in recent docker versions with a special DOCKER-chain that should allow...

Passing Elasticsearch and Kibana config file to docker containers

elasticsearch,docker,kibana,kibana-4
I have found a docker image devdb/kibana which runs Elasticsearch 1.5.2 and Kibana 4.0.2. However I would like to pass into this docker container the configuration files for both Elasticsearch (i.e elasticsearch.yml) and Kibana (i.e config.js) Can I do that with this image itself? Or for that would I have...

Access other containers of a pod in Kubernetes

docker,kubernetes
When I define multiple containers in a pod/pod template like one container running nginx and another php-fpm, how can they access each other? Do I have to define some links in the definition (I could not find docs explaining all available config options) or can they each other by default?...

“Dockerized” apps frequently are built on top of OS containers. Why doesn't this defeat the purpose?

docker
A question came up as I was giving a presentation on Docker to my team that I didn't know how to answer. Many of the prebuilt containers on Docker Hub, for just one example the jboss/wildfly container, are built on top of containers for a specific OS (Ubuntu, CentOS, etc.)....

Start Docker Containers In Specific Order After Reboot

docker
Context Almost all of my docker containers are web applications that run on port 80. To allow them to all run on a single host, I allow docker to assign a random unused port, and use the jwilder/nginx-proxy (reference) as a reverse proxy. This requires the jwilder/nginx-proxy to be running...

Automatic building and installing Packages from AUR for Arch Linux inside Docker with yaourt and >makepkg-4.2.0

docker,archlinux
I'm using Docker and Arch Linux inside the Docker-Container. Introducing makepkg-4.2.0 my Installation Command with yaourt were broken like described here: https://github.com/archlinuxfr/yaourt/issues/67 The Problem is, that yaourt should be run as non-root user. But as yaourt wants also to install the Package in every Case, after it has built it,...

Is docker must run under linux 64bits?

docker
I heard that docker must run under 64bit linux. Is it correct? We will implement a linux with ARM core - 32bits. Is the docker can run under this platform.

docker with btrfs ubuntu

docker,btrfs
I need help in order to start docker deamon using btrfs. The deamon don't want to start when I try to start it using -s btrfs. There is an error in the logs (wrong filesystem?) when trying to start docker deamon with btrfs. I use ubuntu as OS : [email protected]:/etc/default#...

How to run several separate Wordpress websites using Docker containers

wordpress,docker
I am very new to Docker, and am currently attempting to run a Wordpress website (just on my local machine for testing purposes--not actually hosting). I currently have three containers: One linux distribution to store my data, used by a MySQL container, and finally a Wordpress container. I can successfully...

docker-compose error - unable to read file

django,docker,docker-compose
I have a simple docker file for a test django application. I am running docker-compose as root user and I can read the requirements.txt file, but docker is erroring out. Any advice? [email protected]:/app/test-project# docker-compose build db uses an image, skipping Building web... Step 0 : FROM python:2.7 ---> 93d77aec17a0 Step...

My docker container was created with no name and no tag

docker,boot2docker
I'm creating a docker image for hakyll compilation. Here's the dockerfile: FROM haskell:7.10 RUN cabal update && cabal install hakyll This file is in some folder on my D: drive: D:\Haskell\docker\docker-hakyll. I'm using Boot2Docker on Windows to build it. docker images gives me REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE...

Error when running jekyll docker container with boot2docker on Mac

docker,jekyll
I am running docker on my MBP (Yosemite 10.10.3) with boot2docker (v1.6.2). When I try to run docker run --rm -v "$PWD:/src" grahamc/jekyll build (without sudo) I got the following error: twer$ $(boot2docker shellinit 2> /dev/null) twer$ docker run --rm -v "$PWD:/src" grahamc/jekyll build /usr/local/bundle/gems/bundler-1.9.9/lib/bundler/spec_set.rb:92:in `block in materialize': Could not...

When should you create more than one docker container image instance with Kubernetes Replication Controller?

docker,google-compute-engine,kubernetes
When using Kubernetes to manage your docker containers, particularly when using the replication controller, when should you increase an images running container instances to more than 1? I understand that Kubernetes can spawn as many container replicas as needed in the replication controller configuration file, but why spawn multiple running...

How to Setup a Docker Tomcat Container on Mac OS X

osx,tomcat,docker
I'm new to Docker... From my understanding, Docker is only compatible with Linux, is it possible to run docker for development purposes on a Mac? I installed virtualbox using homebrew and have tried to create a virtualbox instance. I installed docker, but am having trouble getting my mac to communicate...

boot2docker resulting in “Cannot connect to the Docker daemon. Is 'docker -d' running on this host?”

docker,riak,boot2docker
I'm new to docker and trying to run this project on OS X 10.10. Docker is installed through brew and looks good in the basics: ➜ docker-riak git:(develop) docker -v Docker version 1.6.2, build 7c8fca2 ➜ docker-riak git:(develop) boot2docker -v Boot2Docker-cli version: v1.6.2 Git commit: cb2c3bc Here's the error: ➜...

Dockerfile build - possible to ignore error?

docker,dockerfile
I've got a Dockerfile. When building the image, the build fails on this error: automake: error: no 'Makefile.am' found for any configure output Error build: The command [/bin/sh -c aclocal && autoconf && automake -a] returned a non-zero code: 1 which in reality is harmless. The library builds fine, but...

Docker container http requests limit

http,elasticsearch,docker
I'm new to Docker so, most likely, I'm missing something. I'm running a container with Elasticsearch, using this image. I'm able to setup everyhing correctly. After that I was a using a script developed by a collegue in order to insert some data, basically querying a MySQL database and making...

What's the best way to share files from Windows to Boot2docker VM

docker,boot2docker
I have make my code ready on Windows, but I find it's not easy to share to boot2docker. I also find that boot2docker can't persistent my changes. For example, I create a folder /temp, after I restart boot2docker, this folder disappears, it's very inconvenient. What is your way when you...

Why does single-user with heredocs and multiline queries throw syntax errors for postgres+docker?

postgresql,docker
So I'm trying to create a Postgres database running on Docker. I have the following file /Users/wwerner/programming/test/dockerdb/build_db.sh: echo "************* Here comes your db! ****************" gosu postgres postgres --single <<- EOSQL CREATE SCHEMA test; CREATE TABLE test.will_fail ( id integer NOT NULL, name character varying NOT NULL); EOSQL echo "" echo...

Docker Wordpress Container Exits after ~30 seconds

mysql,wordpress,docker
I am new to using Docker, and am currently trying to create a Wordpress website locally using a Wordpress Docker container, and a MySQL database (Note: I am also new to MySQL). The MySQL database is not running in a container, but I would rather like to make my own...

AWS EC2 Container Service / Elastic Beanstalk Docker Container Port udp binding

amazon-web-services,amazon-ec2,docker,elastic-beanstalk,ec2-container-service
According to the documentation of ECS task definitions, this is how we define port mappings. "portMappings": [ { "containerPort": integer, "hostPort": integer } ... ] By default this is binding port over tcp. How to achieve udp port bindings to docker containers running in AWS Elastic Beanstalk (Multi-container) or with...

Does Google Container Registry undergo issues?

docker,google-cloud-platform,google-container-engine,google-container-registry
I am facing an issue while using container optimized VMs. I launch an instance with following command: gcloud compute instances create "$instance_name" \ --tags "http-server" \ --image container-vm \ --scopes storage-rw,logging-write \ --metadata-from-file google-container-manifest="m2.yml" \ --zone "$my_zone" \ --machine-type "$my_machine_type" where m2.yml is: version: v1beta2 containers: - name: nginx image:...

SocketError: No such file or directory - connect(2) for /var/run/docker.sock

ruby-on-rails,docker,boot2docker
I am trying to run a docker container inside a rails application, however I keep receiving the following error:- container = Docker::Container.create({'Image' => 'mitc/judge'}) Excon::Errors::SocketError: No such file or directory - connect(2) for /var/run/docker.sock (Errno::ENOENT)` The environment variables are set bash-3.2$ env | grep DOCKER DOCKER_HOST=tcp://192.168.99.100:2376 DOCKER_TLS_VERIFY=1 DOCKER_CERT_PATH=/Users/ayushlodha/.docker/machine/machines/dev The container...

ERROR: (gcloud.preview) Invalid choice: 'docker'. Did you mean 'dm-v2'?

docker,google-cloud-platform,gcloud
Somehow I was able to push my docker image to Google Container Registry with command: $ gcloud preview docker push gcr.io/<my-project-xxx>/<my-image-yyy> I ran the commands yesterday and copied them to my notes, but today pasting them to terminal in the same order I get the error: ERROR: (gcloud.preview) Invalid choice:...

Not able to clone private repo using dockerfile

github,docker,dockerfile
I am new to docker, so was trying all basic stuff. I have used following dockerfile to generate my working docker images FROM ubuntu:14.04 MAINTAINER Alok Agarwal "alok.alok.com" RUN apt-get update #Install git RUN apt-get install -y git RUN mkdir -p /root/.ssh/ ADD id_rsa /root/.ssh/id_rsa RUN touch /root/.ssh/known_hosts RUN chmod...

Disable ip v6 in docker container

docker,ipv6
I have ipv6 enabled on docker host but there is one particular container where ipv6 is causing issues. Is there a way to launch a container without ipv6 support, either through command line argument or dockerfile directive?

Dockerfile 'RUN git clone' removes intermediate container

git,docker,boot2docker,git-clone
I using Boot2Docker on Windows 7 to build my developement environment with a Dockerfile. When i run docker build -t myimage dir/of/docker/file, then everything works fine until this line: RUN git clone --verbose https://github.com/zsh-users/antigen ~/.antigen/antigen The output of this line is: Step 12 : RUN git clone --verbose https://github.com/zsh-users/antigen ~/.antigen/antigen...

Use of container docker as a proxy for CF app to get public IP

docker,containers,bluemix
I need a public IP for my application: is it a proper solution to use docker container as a proxy? I can see the price increasing quite a lot with all traffic going through proxy to reach the application. Is there any other option recommended?

How can I create a docker image from the current system?

google-app-engine,docker,boot2docker
I want to create a Docker image after I SSH into the VM and download/config the project. Due to the nature of the project I cannot do this in the config file, it must be done by "freezing" the current system into an image. Is this possible? ...

Docker-compose and pdb

python,docker,pdb,docker-compose
I see that I'm not the first one to ask the question but there was no clear answer to this: How to use pdb with docker-composer in Python development? When you ask uncle Google about django docker you get awesome docker-composer examples and tutorials and I have an environment working...

autoexpect on docker centos6.6 container cannot work

centos,docker,expect,autoexpect
Docker container pure image: centos6.6 after bash, I install these: yum -y install tar zip unzip expect glibc.i686 Package expect-5.44.1.15-5.el6_4.x86_64 already installed and latest version and run autoexpect, I always get these error: [[email protected] bin]# autoexpect autoexpect started, file is script.exp no such variable (read trace on "env(SHELL)") invoked from...

Access binaries inside docker

ubuntu,meteor,docker
I am using Meteor and Meteur Up package to push a bundle to server. It uses docker. The problem is that I cannot access graphicsmagick or imagemagick from inside a docker to use it in my app. However it is installed on the server and I can access it when...

Commit data in a mysql container

mysql,linux,database,docker,virtualization
I created a mysql container using the officially supported mysql image. I ran the image mounting a folder that contains a sql dump, then I created a new database in the container and imported the .sql dump in it: sudo docker run --name mysql-psat1 -v /opt/Projets/P1/sqldumps:/mnt -e MYSQL_ROOT_PASSWORD=secret -d mysql:latest...

Golang failes to change the name of imported module

go,docker,skydns
I'm trying to bring SkyDNSv1 back to life and build it from my fork (here is Dockerfile). SkyDNS was really good and simple tool for the quick service discovery, but it wasn't updated for a long time. There is an error in build process and it's caused by third party...

Unable to get docker containers running disque to establish a cluster

docker,disque
I put together a docker container building disque https://registry.hub.docker.com/u/jobflow/disque/ I am able to deploy and run a single service. I can expose a port and connect to it from a disque client running on the same container or a different container. But when connect to one instance and send the...

How to inspect a docker image in docker hub?

docker,dockerhub
Is there a way to do docker inspect for an image that exists on docker hub and wasn't pulled locally? I'm a bit confused about the usage of the docker cli when it comes to docker hub. I can docker login, but then can't use that login to perform any...

Running quick programs inside a docker container

docker
My web-application uses graphicsmagick to resize images. Resizing an image will usually take about 500ms. To simpilfy the setup and wall it off I wanted to move the graphicsmagick call inside a docker container and use docker run to execute it. However, running inside a container adds an additional ~300ms,...

What tool can manage Docker container to start in order?

docker,containers
We're trying to port our system to the containers, currently we try Docker module with Puppet and we face an issue with the order of starting some specific conainers. We have a web application, MySQL, NginX and then everything connect through HAproxy. Each of them live in their own container....

How to mount volume for docker container via yaml manifest?

docker,google-cloud-platform,google-container-engine
I try to launch container-vm machine with following yaml: version: v1 kind: Pod spec: containers: - name: simple-echo image: gcr.io/google_containers/busybox command: ['nc', '-p', '8080', '-l', '-l', '-e', 'echo', 'hello world!'] imagePullPolicy: Always ports: - containerPort: 8080 hostPort: 8080 protocol: TCP volumeMounts: - name: string mountPath: /home readOnly: false restartPolicy: Always...

Meteor mupx ssl configuration is not working, still routing to port 80

javascript,ssl,meteor,docker
Heres my mup.json: // Configure environment "env": { "PORT": 3000, "ROOT_URL": "https://www.exomatch.com" }, //SSL "ssl": { "certificate": "ssl/ssl.crt", // this is a bundle of certificates "key": "ssl/private.key", // this is the private key of the certificate "port": 443 // 443 is the default value and it's the standard HTTPS port...

Difficulty accessing Docker's API

linux,api,docker,firewall
I was struggling to get connected to the Docker API running on a RedHat 7.1 VM, the docker API is running on both a TCP port and a UNIX socket. To configure this I set -H OPTIONS as follows: OPTIONS='--selinux-enabled -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock' in the file: /etc/sysconfig/docker Running the...

Accessing files inside Docker container

docker,phpstorm
I started playing today with Docker, pulled the Centos image, configured apache inside the container with php and I am able to access the website using the ip address. However, I don't know how am I supposed to access the source files of my app that is stored inside the...

Hide/obfuscate environmental parameters in docker

mysql,docker
I'm using the mysql image as an example, but the question is generic. The password used to launch mysqld in docker is not visible in docker ps however it's visible in docker inspect: sudo docker run --name mysql-5.7.7 -e MYSQL_ROOT_PASSWORD=12345 -d mysql:5.7.7 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES...

docker run local script without host volumes

database,shell,docker,docker-compose
The goal is to add data to my database server containers of a multi-container web app from a download using curl once the database containers are running. I can do this from docker-compose.yml or from docker run independent of the web app, as long as I use host volumes. How...

Using docker-compose volumes_from option does not work

docker,dockerfile,docker-compose
In base Dockerfile I ADD some directories from host machine to image. I want to include all directories from container running on base image to another one. So I write a simple .yml file: app: build: . links: - base volumes_from: - base base: extends: file: docker-base.yml service: base But...

difference between docker attach and docker exec

docker,exec
Both will be able to execute commands in container. Both could detach the container. So what is the real difference between docker exec and docker attach?...

Run Boot2Docker from bash

osx,bash,docker,boot2docker
I have installed Boot2Docker on my Mac. By clicking on the app icon, a terminal window opens with some bash script running to prepare the docker vm and then you're good to go. My problem is, I want to write a bash script to run the Boot2Docker vm and then...

Adding nodes on the fly with Docker Swarm

docker,docker-swarm
I'm running a swarm using a static list of IPs and I want to add a node. The obvious solution would be to quit the swarm created with swarm manage -H 2375:2375 <node_ip1:2375> and run swarm manage -H 2375:2375 <node_ip1:2375>,<node_ip2:2375>. Is there another solution to do something like swarm add...