Questions tagged [docker]

Docker is an open source project that automates the deployment of applications inside software containers.

Docker is an open source project that automates the deployment of applications inside software containers. Docker extends a common container format called Linux Containers (LXC), with a high-level API providing a lightweight virtualization solution that runs processes in isolation. Docker utilizes LXC, cgroups, and the Linux kernel itself. Unlike traditional virtual machines, a Docker container does not include a separate operating system, instead it relies on the operating system’s functionality provided by the underlying infrastructure.

4147 questions
79
votes
2 answers

Downloading docker image for transfer to non-internet-connected machine

I'm working in an office where my laptop is internet-connected, but tightly controlled. I am not allowed to install unauthorized software onto it. My development workstation is mine to do with as I please, but it does not have an internet…
shearn89
  • 3,403
  • 2
  • 15
  • 39
77
votes
1 answer

How does "restart: always" policy work in docker-compose?

I have docker compose file with PostgreSQL and my application, like this: version: '3' services: postgresql: image: postgres:9.6.6 ports: - 9932:5432 expose: - "5432" environment: - POSTGRES_PASSWORD=pass …
Marcin Zablocki
  • 873
  • 1
  • 6
  • 6
75
votes
4 answers

Why isn't ifconfig available in Ubuntu Docker container?

With the base ubuntu:12.04, ifconfig is not available in the container, though the ip command is available, why is this? and, how to get ifconfig in the container?
Pellaeon
  • 953
  • 1
  • 7
  • 7
74
votes
14 answers

Docker containers can't resolve DNS on Ubuntu 14.04 Desktop Host

I'm running into a problem with my Docker containers on Ubuntu 14.04 LTS. Docker worked fine for two days, and then suddenly I lost all network connectivity inside my containers. The error output below initially lead me to believe it was because…
Thomas V.
  • 2,071
  • 2
  • 17
  • 13
74
votes
7 answers

How to specify hostname for the running container?

I'm having trouble setting the hostname on a running docker container. I'm also having trouble understanding how to specify hostname after the image is started. I started a container from an image I downloaded: sudo docker run -p 8080:80 -p 2222:22…
Miguel Ping
  • 865
  • 1
  • 6
  • 9
73
votes
4 answers

failed to get D-Bus connection: Operation not permitted

I'm trying to list services on my CentOS image running in Docker using systemctl list-units but I get this error message: Failed to get D-Bus connection: Operation not permitted Any suggestions what the problem might be?
Snowcrash
  • 1,137
  • 2
  • 17
  • 19
73
votes
5 answers

Which OS is running in my Docker container?

Most of the time, using one of these two, I can tell which OS is running in my Docker container (alpine, centOS, etc) But this time, I can't tell: bash-4.2$ uname -a Linux 6fe5c6d1451c 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC…
Bob Yoplait
  • 841
  • 1
  • 6
  • 6
73
votes
5 answers

The right way to keep docker container started when it used for periodic tasks

I have docker container with installed and configured software. There is no any programm supposed to be started/runned all the time. What I want - its ability to start some command depending on external events. like: docker exec mysupercont…
Korjavin Ivan
  • 2,250
  • 2
  • 26
  • 41
67
votes
3 answers

How to use docker secrets without a swarm cluster?

Currently we im a running application on a single docker container, the application needs all sorts of sensitive data to be passed as environments variables, Im putting those on the run command so they don't end up in the image and then on a…
Juan Sebastian
  • 1,233
  • 3
  • 10
  • 13
67
votes
5 answers

Why can't I cd to a directory with docker run?

I need to run an application from a specific directory. $ sudo docker run -P ubuntu/decomposer 'cd /local/deploy/decomposer; ./decomposer-4-15-2014' 2014/10/09 21:30:03 exec: "cd /local/deploy/decomposer; ./decomposer-4-15-2014": stat cd…
schmmd
  • 773
  • 1
  • 5
  • 5
64
votes
2 answers

When building from Dockerfile, Debian/Ubuntu package install debconf Noninteractive install not allowed

I've set the following environment so that no question/dialog is asked during apt-get install: ENV DEBIAN_FRONTEND noninteractive # export DEBIAN_FRONTEND="noninteractive" Which is equivalent to: export DEBIAN_FRONTEND="noninteractive" Yet,…
Phil L.
  • 1,085
  • 1
  • 8
  • 6
59
votes
3 answers

Docker: failed to add the pair interfaces (operation not supported)

After installing Docker, I am getting an error when I try to run the Hello World example: Error response from daemon: Cannot start container 4145d0fccd96b904e4ab4413735f1129b8765429bad5be71dc8d5f4c0760666d: failed to create endpoint high_saha on…
piero-la-lune
  • 593
  • 1
  • 4
  • 4
59
votes
5 answers

Removing Docker data volumes?

The official Docker documentation mentions that I need to run docker rm -v containername to specifically remove a data volume. But what do you do if you already removed all the containers referencing the specific data volume ?
p4guru
  • 963
  • 1
  • 8
  • 16
57
votes
4 answers

Relationship between Vagrant, Docker, Chef and OpenStack (or similar products)?

I am a web developer, but I am also interested in a few administrative tasks. Hence, the new move from pure administration to dev-ops comes handy for me. Anyway, I have some problems to put a few things into a relationship. Maybe there isn't any, so…
Golo Roden
  • 781
  • 1
  • 8
  • 10
56
votes
1 answer

Pros and cons of using Windows containers instead of Linux containers for Docker?

I'm installing Docker for Windows (CE) on Windows 10 and the first screen asks me: [  ] Use Windows containers instead of Linux containers (this can be changed after installation) This seems an important decision, yet the Docker documentation, FAQ…
Duncan Jones
  • 710
  • 1
  • 6
  • 17