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.

1576 questions
161
votes
5 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
  • 1,909
  • 3
  • 12
  • 11
160
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,743
  • 2
  • 12
  • 8
97
votes
8 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
  • 1,556
  • 4
  • 15
  • 17
92
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,031
  • 1
  • 8
  • 5
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
81
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
  • 913
  • 1
  • 4
  • 7
80
votes
6 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,458
  • 2
  • 10
  • 17
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
57
votes
5 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,294
  • 2
  • 14
  • 20
56
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
  • 692
  • 1
  • 7
  • 13
53
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
  • 801
  • 2
  • 10
  • 16
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
  • 835
  • 2
  • 9
  • 20
34
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
  • 445
  • 1
  • 4
  • 11
33
votes
3 answers

apt-get update is failing in debian

cat /etc/apt/sources.list deb http://deb.debian.org/debian jessie main deb http://deb.debian.org/debian jessie-updates main deb http://security.debian.org jessie/updates main then apt-get update is failing. If i remove the second line then above…
31
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
  • 667
  • 1
  • 5
  • 9
1
2 3
99 100