Tag: containers

Create a network for two machines in docker that is not reachable from the host system

Is there a way to create a network with two docker containers in it which is not accessible from the host system? I search some way to do what is called internal networking in virtualbox. If it is possible, how? And if it is not, why? Thanks 😀

Accessing the same mongoDB instance from multiple Docker containers

I have two containers (A and B) running Node + MongoDB. A contains restricted endpoints that require a valid token in order to read + write from the database. B will contain public endpoints that have no request requirements and allow anyone to read certain documents from the database. The endpoints exposed in both A […]

Networking and DNS in Kubernetes local cluster with Docker

I have downloaded Kubernetes binaries from release tag in Github. I placed the binaries in my path (i.e. kubectl) I followed this guide to start up a simple local cluster with Docker containers: http://kubernetes.io/v1.0/docs/getting-started-guides/docker.html Now I can contact Kubernetes API from and I got Nginx pod running and service exposed. I have a ‘docker0’ […]

Scripts within Python on current directory

So, I’m in a bit of a particular situation and i’m trying to find a clean solution. Currently we’ve got 18 different repos, all with python deployment utilities copy and pasted 18 times with venv… to me this is disgusting. I’d like to bake those utilities into some kind of “tools” docker image, and just […]

Kubernetes docker flannel subnet file not found

I want to setup a kubernetes multi-node cluster on docker following http://kubernetes.io/v1.1/docs/getting-started-guides/docker-multinode/master.html on a ubuntu server. The single node setup works fine. However For the multi-node setup I occur several problems: https://github.com/kubernetes/kubernetes/issues/22256 The most important one being: sudo docker -H unix:///var/run/docker.sock exec someHash cat /run/flannel/subnet.env cat: can’t open ‘/run/flannel/subnet.env’: No such file or directory I […]

Secure gateway between Bluemix CF apps and containers

Can I use Secure-Gateway between my Cloud Foundry apps on Bluemix and my Bluemix docker container database (mongo)? It does not work for me. Here the steps I have followed: upload secure gw client docker image on bluemix docker push registry.ng.bluemix.net/NAMESPACE/secure-gateway-client:latest run the image with token as a parameter cf ic run registry.ng.bluemix.net/edevregille/secure-gateway-client:latest GW-ID when […]

Neither “docker stop”, “docker kill” nor “docker -f rm” works

Trying to stop container from this image by using either of mentioned commands results in indefinite waiting by docker. The container still can be observed in docker ps output. Sorry for a newbie question, but how does one stop containers properly? This container was first run according to the instructions on hub.docker.com, halted by Ctrl+C […]

how do i run a container so that it is running behind a proxy + on running?

how do i run a container so that it is running behind a proxy? currently I have to run my image/container: docker run -it <imagename> then I have to do the following: export http_proxy= export https_proxy= Is there a way I can put the proxy in a file in the image and then commit and […]

How to Run Container on a Specified Disk?

Normally we would run container by using the following command: Docker run -it ubuntu /bin/bash Is there any option to specify where to run the container (like on which disk or partition)?

Dependent Containers and Links with IBM DevOps Services Build Pipeline

I’m currently deploying a container-based application using docker-compose. The application has a couple of components that link to dependencies (i.e. the backend links to a mongo container). For example (docker-compose.yml): mongo: container_name: backend-mongo image: mongo ports: – “27017” backend: container_name: backend image: backend:production ports: – “6002:6002” links: – mongo Has anyone found an equivalent approach […]

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