Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [docker]

For questions about building and running Docker containers. DOCKER QUESTIONS MUST BE SPECIFICALLY RELATED TO SOFTWARE DEVELOPMENT. Suitable topics include Dockerfiles, Docker Compose, and architecture. As a rule of thumb, if your question is about something happening inside the container, it's probably on-topic here; if it's outside the container, it is probably off-topic.

docker
3 votes
2 answers
2k views

lxc-start: Invalid argument - failed to clone

Complete newbie trying to get my feet wet on docker, so maybe I am doing something obviously wrong. I am having trouble running a container: root@tethys:~# docker run ubuntu ls lxc-start: Invalid ...
blueFast's user avatar
  • 43.4k
36 votes
2 answers
33k views

How do I start cron on docker ubuntu base?

I have installed cron via apt-get install cron Trying to start cron fails (as expected) because of upstart not running. What is the command line for starting cron properly (i.e. it will read users' ...
rollingBalls's user avatar
  • 1,848
7 votes
1 answer
1k views

Requests hanging on ports forwarded from docker container inside vagrant

So I have a setup very similar to this one where I have a docker container running a web service inside of vagrant. When trying to make a request to the web service on the forwarded port in the ...
Chris Bolton's user avatar
  • 2,918
275 votes
14 answers
271k views

How can I use a local image as the base image with a dockerfile?

I'm working on a dockerfile. I just realised that I've been using FROM with indexed images all along. So I wonder: How can I use one of my local (custom) images as my base (FROM) image without ...
Phil's user avatar
  • 14.4k
1 vote
1 answer
2k views

Dockerfile : not able to use add to map local file to container

I am trying to build an ejabberd container and trying to add 2 files from my build directory while creating the container. add ./scripts/ /src However, I keep getting the error: ./scripts folder ...
user3081574's user avatar
2 votes
2 answers
714 views

pip install django-allauth UnicodeDecodeError

I'm trying to pip install django-allauth with Python 3.3.2 in a docker container and I'm getting a Unicode Decode Error. https://dpaste.de/JaXg It installs properly on my mac... Any ideas? Running ...
user2128350's user avatar
0 votes
1 answer
1k views

My Docker container will run a command from within the container, but not with ENTRYPOINT

As stated in the title - after building an image via a Dockerfile, I can enter the image via run -i -t myimage /bin/bash, and then run the command I'd like - it works just fine. However, doing ...
Brandon's user avatar
  • 3,121
272 votes
38 answers
567k views

My docker container has no internet

I had it working allright but now it stopped. I tried the following commands with no avail: docker run -dns 8.8.8.8 base ping google.com docker run base ping google.com sysctl -w net.ipv4....
Romeo Mihalcea's user avatar
34 votes
13 answers
26k views

How do I run Docker on Google Compute Engine?

What's the procedure for installing and running Docker on Google Compute Engine?
Marc Cohen's user avatar
  • 3,800
23 votes
3 answers
17k views

Binding a port to a host interface using the REST API

The documentation for the commandline interface says the following: To bind a port of the container to a specific interface of the host system, use the -p parameter of the docker run command: ...
Pickels's user avatar
  • 34.4k
7 votes
2 answers
6k views

Run old Linux release in a Docker container?

I've got a binary application that won't work on versions of Ubuntu later than Feisty. Is it possible to build a Docker image containing Feisty and run it on my modern system?
GaryBishop's user avatar
  • 3,612
0 votes
2 answers
279 views

my docker build just keeps closing

i'm on OS X 10.9 and am using docker v0.7. i'm using the following docker file: https://gist.github.com/jonathanong/7366257. i've vagrant up; vagrant ssh; sudo docker build . the Dockerfile. when i'm ...
Jonathan Ong's user avatar
  • 20.3k
0 votes
2 answers
2k views

Bash Script to execute Docker container operations and extract container IP Address

I am trying to write a Linux bash script that creates and runs docker containers that run a simple python web server, extract the container IP Address and make an HTTP Request to the server through a ...
Unferth's user avatar
  • 4,658
5 votes
1 answer
1k views

Linking Containers via Docker Remote API

I'm trying to link a child mongo container to a parent node container using the Docker remote API v1.7. I see the Links property in HostConfig which I'm guessing is passed to the POST /containers/<...
twirkman's user avatar
17 votes
5 answers
22k views

How to use rabbitmqctl to connect to the rabbitmqserver in the docker container?

I've used docker to start my rabbitmqserver. How can I use rabbitmqctl to connect to the rabbitmqserver in the docker container? Port 5672 has been exposed and map to the 5672 port of my host. But I ...
waitingkuo's user avatar
  • 92.6k

15 30 50 per page