Questions tagged [docker]

Docker - An open platform for distributed applications for developers and sysadmins. Check Dockerfiles with https://hadolint.github.io/hadolint/ before posting

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.

2000 questions
267
votes
15 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
  • 3,466
228
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,589
166
votes
4 answers

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

What's the difference between docker stop and docker kill? As far as I know, 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…
Geert-Jan
  • 1,803
135
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…
109
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,201
106
votes
4 answers

Docker on Hyper-V vs WSL 2

I'm using Docker Toolbox, recently I got to know about the Docker installation using WSL 2. What are the differences between Hyper-V and WSL 2? Which has better performance?
Vinod Sai
  • 1,161
82
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,654
82
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
82
votes
5 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
70
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
  • 836
68
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
  • 1,001
65
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
  • 753
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 Peres
  • 1,497
41
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 …
40
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
  • 980
1
2 3
99 100