Questions tagged [docker]

Docker - An open platform for distributed applications for developers and sysadmins.

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications. Consisting of Docker Engine, a portable, lightweight runtime and packaging tool, and Docker Hub, a cloud service for sharing applications and automating workflows, Docker enables apps to be quickly assembled from components and eliminates the friction between development, QA, and production environments. As a result, IT can ship faster and run the same app, unchanged, on laptops, data center VMs, and any cloud.

1806 questions
205
votes
6 answers

How to install a specific package version in Alpine?

I have a Dockerfile to build a Docker image that is based on Alpine Linux. Now I need to install a package as part of this Dockerfile. Currently I have: RUN apk update && \ apk upgrade && \ apk add git Apparently this is a bad idea, as the…
Golo Roden
  • 2,359
  • 3
  • 13
  • 11
195
votes
14 answers

How can I reduce the consumption of the `vmmem` process?

I installed docker on windows home which uses WSL2 as a backend. However, since doing this a process called vmmem seems to be consistently consuming a lot of computational resources. I ran docker stop $(docker ps -aq) to kill all running containers…
CiaranWelsh
  • 2,626
  • 5
  • 17
  • 20
165
votes
4 answers

what's the difference between `docker stop` and `docker kill`?

What's the difference between docker stop and docker kill? Afaik, both will stop a running container. Is it that docker stop attempts to stop the process run inside the container in the correct way, while docker kill will send a kill signal? If so…
Geert-Jan
  • 1,793
  • 2
  • 12
  • 8
120
votes
8 answers

docker-compose up/down just one container

I have not been able to find a way to up/down just one container in a docker-compose.yml file. I can off-course start and stop a single container, but I cannot make changes to a containers configuration between restarts (environment variables, mount…
Inquisitor Shm
  • 1,898
  • 3
  • 11
  • 18
97
votes
3 answers

Docker containers have their own kernel or not?

I see that a lot of docker images in the docker repository are made with an Ubuntu base. What does that mean? Does each container bundle a stripped down version of the Linux kernel? Do containers sit on top of their own kernels? But I thought…
stewart99
  • 1,081
  • 1
  • 8
  • 5
82
votes
4 answers

Issue with fetching http://deb.debian.org/debian/dists/jessie-updates/InRelease with docker

Im trying to run the command docker-compose build I get this output: Step 4/8 : RUN apt-get update && apt-get install -y google-chrome-stable ---> Running in ee9551cd38b9 Ign http://dl.google.com stable InRelease Get:1 http://security.debian.org…
Pajala
  • 923
  • 1
  • 6
  • 7
81
votes
4 answers

Problems installing ping in docker

I am trying to follow the docker tutorial but in a virtual machine. I've tried to install ping in ubuntu docker container with the command sudo docker run ubuntu apt-get install ping The problem is that docker doesn't install anything and gives…
user3327759
76
votes
6 answers

What's the difference between docker.io and docker?

Trying to learn docker here but I am a bit confused on what the difference is between docker.io and docker. Is docker.io the daemon server and docker the client? Why does the daemon need to run all the time?
Pithikos
  • 1,564
  • 2
  • 15
  • 20
64
votes
1 answer

Remove docker0 bridge

I'm using docker via # service docker start This creates a docker0 bridge. However using # service docker stop doesn't remove this bridge. How do I get rid of it? I'm not sure if I missed something here.
tynn
  • 743
  • 1
  • 6
  • 8
64
votes
3 answers

How to make a symlinked folder appear as a normal folder

I have two Dart applications I need to dockerize. These two apps use a shared source directory. Because Docker prevents adding files from folders outside the context directory (project/app1) I can't add files from ../shared nor from shared (the…
zoechi
  • 772
  • 1
  • 7
  • 13
60
votes
2 answers

Why is the Alpine Docker image over 50% slower than the Ubuntu image?

I noticed that my Python application is much slower when running it on python:2-alpine3.6 than running it without Docker on Ubuntu. I came up with two small benchmark commands and there's a huge difference visible between the two operating systems,…
Underyx
  • 911
  • 2
  • 10
  • 16
42
votes
3 answers

Docker WSL 2 installation is incomplete

After substituting Docker Desktop on Windows 10 with a more recent version, clicked to start it and got the following error WSL 2 installation is incomplete The WSL 2 Linux kernel is now installed using a separate MSI update package. Please click…
Tiago Martins Peres
  • 1,327
  • 2
  • 17
  • 33
39
votes
5 answers

How solve permission problems for docker in ubuntu?

I have installed docker as described here. I use Ubuntu Trusty 14.04 (LTS) (64-bit). Everything during installation was well. Also command $ sudo docker run -i -t ubuntu /bin/bash completes well (after I typed "exit" in opened console. But when I…
Cherry
  • 870
  • 2
  • 10
  • 23
39
votes
6 answers

No internet connection inside Docker containers

I cannot execute any command requiring internet connection inside any Docker container. Works: docker run ubuntu /bin/echo 'Hello world' Does not work: docker run ubuntu apt-get update Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease …
Sashko Lykhenko
  • 495
  • 1
  • 4
  • 11
35
votes
9 answers

How to remove all the vEthernet (Default Switch) once and for all?

As in the screenshot above, I don't know why the vEthernet (Default Switch) on my Windows 10 laptop keeps reproducing itself and auto connecting to it everytime I shut down and switch on the laptop. Worst is if I switch Wi-Fi networks, it auto…
compski
  • 727
  • 1
  • 6
  • 9
1
2 3
99 100