Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
163 votes
5 answers
273k views

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 &...
user avatar
  • 1,929
160 votes
4 answers
100k views

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, ...
user avatar
  • 1,743
102 votes
8 answers
193k views

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 ...
user avatar
  • 1,616
93 votes
3 answers
80k views

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 ...
user avatar
  • 1,041
83 votes
6 answers
114k views

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 ...
user avatar
81 votes
4 answers
68k views

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....
user avatar
  • 913
81 votes
4 answers
179k views

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 ...
user avatar
64 votes
1 answer
74k views

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 ...
user avatar
  • 743
58 votes
5 answers
62k views

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 ...
user avatar
  • 1,314
56 votes
3 answers
46k views

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 ...
user avatar
  • 692
54 votes
2 answers
34k views

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 ...
user avatar
  • 811
39 votes
5 answers
57k views

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 (...
user avatar
  • 835
34 votes
6 answers
109k views

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:...
user avatar
33 votes
3 answers
36k views

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 ...
user avatar
32 votes
4 answers
92k views

Is it possible to have docker running inside of vmware?

I run vmware workstation for my dev needs and have to maintain different VMs for diff environments. Docker seems to allow running diff environments in containers, therefore Inside of my Windows 10 ...
user avatar
31 votes
6 answers
62k views

What is my container's IP number using Docker beta for mac?

Previously I was using the Docker toolkit and could use docker-machine inspect <machine-name> to find the IP of the docker machine, in order to view the pages being served by the container ...
user avatar
  • 551
31 votes
9 answers
115k views

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. ...
user avatar
  • 667
31 votes
1 answer
71k views

How to install docker on windows 7 machine?

My OS is supporting windows 7 and i need to install docker for my hyperledger project. Apparently, docker is available for windows 10. What should i do in this case, because upgrading my OS version is ...
user avatar
27 votes
4 answers
43k views

How to install Windows 10 Home 19018 update?

I'm using windows home edition, I have the latest update installed 1909. I want to install docker for windows 10 home edition. It keeps saying Docker Desktop requires Windows 10 Pro/Enterprise (...
user avatar
  • 4,708
26 votes
2 answers
16k views

How can the BIOS block virtualization?

I'm starting to work with Docker and after a few hours of trying to make it work, I found out that my BIOS was blocking it and that I needed to adjust the BIOS settings. I was told that the BIOS is ...
user avatar
25 votes
2 answers
56k views

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 ...
user avatar
25 votes
1 answer
21k views

Starting Docker for Mac from the command line?

Is there a way to start Docker for Mac (and / or Docker for Windows) from the command line? I can't find any documentation about it. My team uses a set of scripts to automate setup of our ...
user avatar
22 votes
2 answers
37k views

How can I let all my docker containers use my proxy?

I am running docker on Debian Jessie which is behind a corporate proxy. To be able to download docker images, I need to add the following to my /etc/defaults/docker http_proxy="http://localhost:3128/"...
user avatar
  • 407
21 votes
2 answers
37k views

How to escape "!" and "&" in docker's environment varibles

I have a docker container I want to run and hand it over some passwords. One with an exclamation mark ! and the other one with an ampersand &. So I want to run this: docker run -i -t --rm \ -e "...
user avatar
  • 732
21 votes
1 answer
18k views

Find the user who started a docker container

We've got many users who belong to the docker group. So any of these users can start a docker container. docker ps will show me all the running containers, but it doesn't show me which user started ...
user avatar
20 votes
2 answers
19k views

What are .dockerenv and .dockerinit?

What are the .dockerenv and .dockerinit files in the root of my container's filesystem? How are they used? Is there any documentation on these files? root@18ceee4f9041:/# ls -al / total 72 drwxr-xr-...
user avatar
19 votes
4 answers
52k views

Setup a Docker container to work with a local database

I'm trying to setup a Docker container to work with a local database. The image is this one https://hub.docker.com/r/tuxgasy/dolibarr/ and it suggests to also create a mariadb container, and link it ...
user avatar
  • 8,266
19 votes
1 answer
21k views

How can I run a script as administrator inside a Windows container

I am trying to install the Windows Enterprise WDK on a Docker image based on windowsservercore. The application installs by unziping and I have already done that and committed that image to Docker. ...
user avatar
  • 293
18 votes
7 answers
24k views

Issue with Wifi Adapter with Docker Windows (Native, HYPER-V)

I just received a brand new work laptop and immediately installed the native version of Docker for Windows. However I am seeing an issue that everytime the new network adapter for Docker via Hyper-V ...
user avatar
17 votes
3 answers
46k views

Docker / Windows Container: how to mount a host folder as data volume on Windows 2016

How to mount a volume from Windows host to Windows guest system? I am on Windows Server 2016 TP4 using Docker. Following the documentation on https://docs.docker.com/engine/userguide/containers/...
user avatar
17 votes
2 answers
43k views

Windows 10 - Location of docker image?

I am using Windows 10. I installed docker and pulled an image following this github https://github.com/floydhub/dl-docker docker pull floydhub/dl-docker:cpu Now I can't seem to find where this image ...
user avatar
  • 575
16 votes
2 answers
16k views

How to override docker-compose project name and network name

Can we override our project and network name inside docker-compose.yml, i.e. without using flag or environment variable?
user avatar
  • 277
16 votes
2 answers
21k views

Is there any reason to use Puppet alongside with Docker? [closed]

I have tried Ops part of DevOps some time ago and it was quite fun, but I haven't time and reason to try it in any project. But last week I started new job, where boss asked me if I can configure ...
user avatar
  • 352
15 votes
1 answer
8k views

How to prevent Docker Desktop from starting after log in on Windows?

I am using Docker on Windows 10 version 1809. Everything work great except that Docker starts after every reboot automatically although I have unchecked 'Start Docker when you log in' in settings. ...
user avatar
15 votes
3 answers
17k views

can't run nginx in alpine linux (docker)

Well I have set up an alpine linux docker container with nginx on it (apk add nginx) Now I am trying to run nginx. With the simple command nginx This returns the following error: nginx: [emerg] ...
user avatar
  • 553
15 votes
4 answers
5k views

Why is docker reporting 100% disk usage on a fresh ubuntu image?

I am no longer able to use docker or effectively run new images -- it is reporting that I have 100% disk usage. Here, you can see I am launching a pristine copy of ubuntu, and yet it is telling me I ...
user avatar
14 votes
4 answers
9k views

Finding out the veth# interface of a docker container

I have hundreds of containers in various software virtual switches. I would like to know if its possible to find out which vnet# belongs to which docker container. Right now, I am detecting that by ...
user avatar
14 votes
1 answer
10k views

Nginx serves site even if server_name does not match

This is my nginx configuration (running as docker container, in case it matters): events { worker_connections 4096; ## Default: 1024 } http { server { server_name registry.mydomain; ...
user avatar
  • 2,386
13 votes
1 answer
21k views

How to install python-pip in CentOS7 Docker Container

I am trying to build a docker container that includes pip. I am on CentOS 7. Here is the fragment from running the docker build command: Step 3 : RUN yum -y install python-pip ---> Running in ...
user avatar
13 votes
4 answers
6k views

How to upgrade software (e.g. PostgreSQL) running in a Docker container?

When using the base PostgreSQL Docker image, you choose a PostgreSQL version, spin up a container and you're running. Great! But what the the correct/best way to upgrade to a newer version of ...
user avatar
13 votes
3 answers
39k views

Run a background script inside a docker container

In my Dockerfile, I run a script: RUN /bin/sh -c scripts/init.sh Inside init.sh, all commands ending with & are not executed: I cannot run background processes. Any idea why?
user avatar
  • 331
12 votes
5 answers
11k views

Running docker as sudo

I installed boot2docker and I ran: ./boot2docker start export DOCKER_HOST=tcp://localhost:4243 I started a tutorial from the Docker site. I don't understand one thing - when I run: sudo docker ...
user avatar
  • 267
12 votes
2 answers
12k views

Installing docker-ce in Ubuntu 18.04 breaks internet connectivity of host

I've installed docker on a fresh ubuntu desktop 18.04 machine and I lost internet connection in the host immediately after the installation finished. More specifically, I can ping 8.8.8.8 but I can't ...
user avatar
  • 231
12 votes
1 answer
9k views

Docker for Windows - Settings to Cisco AnyConnect allow share driver

VPN is blocking my attempt to allows Docker for Windows to share C: on windows 10 machine. Works fine when im out off VPN. When its on I get A firewall is blocking file Sharing between Windows and ...
user avatar
12 votes
1 answer
3k views

Connect to a VPN (OpenVPN) from a docker service on swarm

I have an OpenVPN server running exposing some private IP addresses, I would like my docker swarm services to access those addresses. Ideally, there wouldn't be an OpenVPN client "inside" the ...
user avatar
11 votes
2 answers
10k views

Mounting a directory from the host in boot2docker for Windows

I'm running docker 1.6 and boot2docker on a Windows 8.1 box. When I use the Boot2Docker Start shortcut, it takes me to a cygwin bash prompt where I can run docker commands natively. I'm having ...
user avatar
11 votes
1 answer
6k views

GNUPG2 suddenly throwing "Error building skey array: No such file or directory"

Some context: I'm a maintainer for a project which uses gnupg2 as part of a framework to encrypt data with a PGP public key so it can't be read if our severs are ever breached, my CI script has worked ...
user avatar
  • 443
11 votes
1 answer
9k views

How to expose Linux socket file from Docker container (MySQL, MariaDB, etc.) to host

Disclaimer: I am not looking for a way to configure MySQL/MariaDB to use TCP connections. I am aware of that option and the question is not about that aspect. I am having trouble binding a socket ...
user avatar
  • 310
11 votes
1 answer
10k views

How do I enable hardware virtualization on the Designare ex x399?

I just completed a new workstation build (Designare EX x399, Threadripper 1950x, gtx 1080ti) and everything works great, except Docker doesn't work because I need to enable hardware assisted ...
user avatar
  • 113
11 votes
2 answers
5k views

Monitor display issues after enabling hyper-v by installing Docker

I'm having issues extending my main display to my external monitor. I didn't have this issue until after I enabled hyper-v by installing Docker. After restarting my computer to enable hyper-v, the "...
user avatar

1
2 3 4 5
32