155,664 questions
1
vote
1
answer
4k
views
How can i mount /dev/shm in a docker container
I created a Docker container, but now I need /dev/shm as a tmpfs mounted inside of the container.
If I manually change the config.lxc file in the Docker folder and uncomment the mount /dev/shm line, ...
110
votes
5
answers
99k
views
How can I make my own base image for Docker?
According to the Docker documentation, to build your own image, you must always specify a base image using the FROM instruction.
Obviously, there are lots of images to choose from in the Docker index,...
6
votes
1
answer
429
views
Docker.IO Filesystem Consistancy
I created a docker container, and then I created a file and exited the container.
When I restart the container with:
docker run -i -t ubuntu /bin/bash
the file is nowhere to be found. I checked /...
15
votes
5
answers
25k
views
Cannot access Centos sshd on Docker
I read an article that SSH Daemon Service.
But I want to run on Centos6.4. So I setup from official centos image with almost same istruction.
Then I connect to centos sshd server, but connection is ...
24
votes
2
answers
8k
views
Running and Deploying Rails to Docker Container
I am a total noob to linux containers and been spending some time learning about Docker, and forgive my confusion thought this question. Currently, I have a Rails app in production deployed via ...
2
votes
2
answers
8k
views
Docker build from source fails
After git clone from dotcloud/docker
cd docker
sudo make VERBOSE=1
Fetching https://net/http/cookiejar?go-get=1
https fetch failed
**
unrecognized import path "net/http/cookiejar"
Can any one ...
35
votes
4
answers
49k
views
How to connect to Docker API from another machine?
I'm trying to use the Docker API to connect to docker daemon from another machine. I am able to do this command successfully:
docker -H=tcp://127.0.0.1:4243 images
But NOT when I use the real IP ...
420
votes
5
answers
111k
views
What does Docker add to lxc-tools (the userspace LXC tools)?
If you take a look at Docker's features, most of them are already provided by LXC.
So what does Docker add? Why would I use Docker over plain LXC?
36
votes
4
answers
23k
views
How to manage docker image dependencies (maintainance)
Using docker, you can create images based on other images very nicely. For instance, you can make an image Java-jdk7 (based on the latest Ubuntu LTS), and based on that create images elastic-search ...
6
votes
4
answers
6k
views
What is the benefit of Docker container for a memcached instance?
One of the Docker examples is for a container with Memcached configured. I'm wondering why one would want this versus a VM configured with Memcached? I'm guessing that it would make no sense to have ...
352
votes
15
answers
260k
views
Is it possible to start a shell session in a running container (without ssh)
I was naively expecting this command to run a bash shell in a running container :
docker run "id of running container" /bin/bash
it looks like it's not possible, I get the error :
2013/07/27 20:00:...
32
votes
5
answers
25k
views
Docker command fails during build, but succeeds while executed within running container
the command :
docker build -t nginx-ubuntu .
whith the Dockerfile below :
FROM ubuntu:12.10
RUN apt-get update
RUN apt-get -y install libpcre3 libssl-dev
RUN apt-get -y install libpcre3-dev
RUN ...
15
votes
3
answers
12k
views
Is it possible to expose a USB device to an LXC/Docker container?
I have an embedded system development image contained in a Docker file. In order to flash the code I need to connect to the nodes via USB Serial (e.g. /dev/ttyACM0).
With Docker I used the new bind ...
282
votes
11
answers
365k
views
Forward host port to docker container
Is it possible to have a Docker container access ports opened by the host? Concretely I have MongoDB and RabbitMQ running on the host and I'd like to run a process in a Docker container to listen to ...
2
votes
1
answer
2k
views
Why does running docker with ProcessBuilder cause a hang?
I'm trying to run a command in a docker container using Java's ProcessBuilder. However, it hangs when waiting for exit code. Why is that?
ProcessBuilder processBuilder = new ProcessBuilder(Arrays....
50
votes
1
answer
17k
views
Why can't you install docker natively in osx?
I would love to be able to use docker outside of Vagrant in OSX. Right now this is not possible. What are the specific reasons causing it not to be limited for linux installations only?
369
votes
11
answers
445k
views
How do I build a docker image if the name of the Dockerfile isn't `Dockerfile`?
I am able a build a Dockerfile like
docker build -t deepak/ruby .
But for a Dockerfile which is not named Dockerfile
# DOCKER-VERSION 0.4.8
FROM deepak/ruby
MAINTAINER Deepak Kannan "deepak@...
15
votes
4
answers
34k
views
My firewall is blocking network connections from the docker container to outside
For me this is a very standard setup, I had a ubuntu machine running docker and ufw as my firewall.
If my firewall is enable the docker instances is unable to connect to outside
$ docker run -i -t ...
41
votes
4
answers
73k
views
Launch a container with Docker without specifying command
I'm familiar with LXC and wanted to try out docker. The issue I'm facing is that I can't find a way to just tell docker to start a container in the background, without executing a command. For example,...
1500
votes
67
answers
963k
views
How to remove old Docker containers
This question is related to Should I be concerned about excess, non-running, Docker containers?.
I'm wondering how to remove old containers. The docker rm 3e552code34a lets you remove a single one, ...
0
votes
0
answers
414
views
Docker : initial installation script fails (ubuntu 13.04 , kernel 3.8+)
I created this script according to docker.io installation instructions for Ubuntu 13.04 with 3.8+ kernel, but script is interrupted as lxc-docker installation fihishes.
ssh -o StrictHostKeychecking=...
158
votes
5
answers
14k
views
Should I be concerned about excess, non-running, Docker containers?
Every docker run command, or every RUN command inside a Dockerfile, creates a container. If the container is no longer running it can still be seen with docker ps -a.
Should I be concerned with ...
10
votes
2
answers
12k
views
How to configure docker to be able to have internet access via wireless connection?
I am trying to build a docker image by using the ones in the repository however i haven't been able to run 'apt-get update' 'apt-get install' commands because it seems that the container is not ...
9
votes
1
answer
3k
views
How to run 2 wordpress blogs using docker on ec2
I just started playing around with Docker.io. Its a great platform for sure. I have an issue i need some help with. I ran a medium instance on ec2 setup docker. Now i want to run 2 wordpress blog ...
78
votes
7
answers
70k
views
How does docker compare to openshift?
Docker and OpenShift are both frameworks to implement a PaaS service.
How do they compare in architecture and features?