Questions tagged [docker]

Docker is an application to create containers for applications.

The main goal of the Docker containers is share applications.

Target application and environment which is needed during the application works packs in image. Often, RAW image is directory hierarchy with needed files that packed in tar archive.

When target image is starting it is being contained (container).

When image arrived to the Docker, then Docker puts it in own storage register in place that called bottom layer. When container of specific image is working, then Docker save all filesystem changes from it to own register too, but in place that called upper layer. If need to save container state to the image, then Docker make upper layer persistent and in future container starting Docker merge lower and upper layer (over AUFS, OverlayFS) during the container are being started. Therefore new images effectively use disk space.

There are huge count of ready containers available in Docker HUB.

Official Docker documentation.

1658 questions
211
votes
2 answers

What is the difference between Docker, LXD, and LXC

What is the difference between Docker, LXD, and LXC. Do they offer the same services or different.
Ijaz Ahmad
  • 7,146
  • 5
  • 32
  • 45
147
votes
5 answers

Forward SIGTERM to child in Bash

I have a Bash script, which looks similar to this: #!/bin/bash echo "Doing some initial work...."; /bin/start/main/server --nodaemon Now if the bash shell running the script receives a SIGTERM signal, it should also send a SIGTERM to the running…
Lorenz
  • 1,573
  • 2
  • 10
  • 5
127
votes
5 answers

Unable to locate package `docker-ce` on a 64bit ubuntu

I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide. Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to fix it or at least to track what is happening ? Here some details for…
danidemi
  • 1,553
  • 2
  • 11
  • 8
93
votes
5 answers

Extract file from docker image?

I'd like to extract a file from a Docker image without having to run the image. The docker save option is not currrently a viable option for me as it's saving too huge of a file just to un-tar a specific file.
BlakBat
  • 1,012
  • 1
  • 7
  • 11
59
votes
4 answers

Creating threads fails with “Resource temporarily unavailable” with 4.3 kernel

I am running a docker server on Arch Linux (kernel 4.3.3-2) with several containers. Since my last reboot, both the docker server and random programs within the containers crash with a message about not being able to create a thread, or (less often)…
cdauth
  • 1,387
  • 2
  • 12
  • 19
50
votes
7 answers

How to configure Centos 7 firewallD to allow docker containers free access to the host's network ports?

I have docker installed on CentOS 7 and I am running firewallD. From inside my container, going to the host (default 172.17.42.1) With firewall on container# nc -v 172.17.42.1 4243 nc: connect to 172.17.42.1 port 4243 (tcp) failed: No route to…
adapt-dev
  • 1,329
  • 2
  • 13
  • 18
48
votes
2 answers

Docker -- WARNING: No swap limit support

I'm running Docker(1.9.1) on Ubuntu 16.04. When I run docker info the last line of the output says WARNING: No swap limit support. INFO[0781] GET /v1.21/info Containers: 0 Images: 0 Server Version: 1.9.1 Storage Driver:…
Stephen C
  • 825
  • 2
  • 8
  • 17
41
votes
7 answers

How to determine Docker image size before being pulled?

We can search for available image files on the docker website like this: https://index.docker.io/search?q=ubuntu How can I tell what the download size(s) will be prior to pulling? docker.io pull [image]
Sepero
  • 1,569
  • 3
  • 20
  • 29
40
votes
10 answers

Why am I getting "Cannot connect to the Docker daemon" when the daemon is running?

The Docker service is clearly running: $ systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: active (running)…
l0b0
  • 50,672
  • 41
  • 197
  • 360
37
votes
2 answers

What do the processes inside a Docker container look like?

I've heard confusion come up several times recently around what a Docker container is, and more specifically what's going on inside, with respect to commands & processes that I invoke while inside a Docker container. Can someone please provide a…
slm
  • 363,520
  • 117
  • 767
  • 871
36
votes
4 answers

apt-get update failed to fetch debian amd64 packages while building dockerfile from maven:3.5.2-jdk-8

Dockerfile: FROM maven:3.5.2-jdk-8 RUN apt-get update && \ apt-get install -y python-dev python-pip RUN pip install awscli --upgrade Build Logs: Preparing build context archive… [==================================================>]3380/3380…
Nikhil Menghrajani
  • 473
  • 1
  • 2
  • 5
36
votes
5 answers

What's the difference between `curl | sh` and `sh -c "$(curl)"`?

One easy install method for Docker (for example) is this: curl -sSL https://get.docker.com/ | sh However, I have also seen some that look like this (using the Docker example): sh -c "$(curl -sSL https://get.docker.com/)" They appear to be…
Sarke
  • 487
  • 1
  • 4
  • 6
34
votes
6 answers

How to install docker-engine in macOS without docker desktop?

Recently Docker announced that Docker Desktop would cease to be free for some kinds of users. See announcement in blog post. I don't need any of the features that are exclusive to Docker Desktop®. I have used docker in a laptop with debian on it and…
santiago arizti
  • 551
  • 1
  • 5
  • 6
32
votes
2 answers

How can I run a graphical application in a container under Wayland?

When I used an X11 desktop, I could run graphical applications in docker containers by sharing the $DISPLAY variable and /tmp/X11-unix directory. For example: docker run -ti -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix some:ubuntu…
Willi Ballenthin
  • 423
  • 1
  • 4
  • 6
31
votes
5 answers

"date -d" command fails on Docker Alpine Linux container

I built Alpine Linux in a Docker container with the following Dockerfile: FROM alpine:3.2 RUN apk add --update jq curl && rm -rf /var/cache/apk/* the build run successfully: $ docker build -t collector . Sending build context to Docker daemon 2.048…
BBJ3
  • 981
  • 1
  • 7
  • 8
1
2 3
99 100