Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [docker]

Docker is an application to create containers for applications.

0
votes
0answers
8 views

Why does docker run busybox timeout not work?

I'm trying to make a script to quickly test whether the network connection works inside docker using busybox. All of these tests failed to timeout after 5 seconds (they took 30 seconds to timeout): ...
0
votes
0answers
11 views

Linux cgroup memory is not beeing freed

I have an k8s cluster and one of the pods is crashing because of OOM. It has the limit of 400MB but crashing when pod reaches 30MB and I have no idea why. There is no other process in its cgroup but ...
0
votes
0answers
33 views

Cannot Install Docker on Kali Linux 2019.1

I followed the instructions on the official page for Docker but add-apt-repository fails with Error: could not find a distribution template for Kali/n/a. I tried also this medium guide but it ...
0
votes
0answers
24 views

Permission denied inside docker container

I have ssh'd into a CentOS 7 docker container as root. I am trying to create a directory (mkdir mydir/test) but I am getting a permission denied error. I tested to make sure I was root with whoami ...
0
votes
0answers
16 views

Mount ISO contained in Docker to host volume

Is there any way to mount an ISO contained in a Docker so that the contents of the ISO are available to the host machine? I can do this on a Linux host by using a bind mount with shared as the bind ...
0
votes
0answers
23 views

Change default interface docker container

I'm struggling with this problem for two days. Assumptions: Docker network (and interface) named docknet type bridge subnet 172.18.0.0/16 Two interfaces eth0 (192.168.1.1) and eth1 (192.168.2.1) ...
0
votes
1answer
49 views

What can be the source of this docker-compose error message: … Cannot set property TasksAccounting, or unknown property

Im running a RHEL 7.3 server with docker-compose 1.25.x & docker 1.13.1 After putting all my file in a directory called Volume, I run the docker-compose as indicated by the product editor command ...
1
vote
1answer
25 views

Apache2 returning “APACHE_RUN_DIR” error on docker container

When trying to start my roundcube mailserver on a docker container I get the apache error: AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of /etc/apache2/...
-1
votes
1answer
18 views

Virtual Box, Vagrant, Docker - vmdk ssh damaged?

CentOS 7 host o/s, guest o/s. VirtualBox-6.0-6.0.4_128413_el7-1.x86_64 Virtualbox Guest Additions 6.0.4 Host kernel 3.10.0-957.1.3.el7.x86_64 Guest kernel 3.10.0-957.10.1.el7.x86_64 Guest file ...
1
vote
0answers
21 views

Docker Debian, getting some specific syslog in the docker container log

I have been installing SSH in the Debian Docker. Since I wanted to have some extra log, I also installed the Rsyslog as described in this question. Result was that some extra logs are created e.g. ...
0
votes
1answer
18 views

How to open a port to specific IPs in iptables while using docker?

I have a postgreSQL database inside of Docker that I don't want to expose it to the host network as it causes all users to see the exposed database port. (For now I don't have a pfsense or anything ...
2
votes
1answer
103 views

How to get mount information of host inside a docker container

I need the mountpoints of all disks attached to a host inside a docker container. The mount information is available in /proc/1/mounts file, but I cannot access that file on all OS. When I run the ...
0
votes
0answers
64 views

Could not bind socket: Address already in use

I'm using port 8082 in dockerfile: ENV FILESERVER_PORT 8082. When starting seafile with: sudo bash /opt/seafile/seafile-server-6.3.4/seafile.sh start I get the error http-server.c(2197): Could not ...
0
votes
0answers
23 views

Running a Dockerfile fails when executing CD command

FROM ubuntu USER root ENV BUNDLE_SILENCE_ROOT_WARNING=1 RUN apt-get update && apt-get -y install curl gnupg unzip wget # Install Nginx. RUN set -ex && \apt-get install -y software-...
0
votes
2answers
84 views

sudo command not found

I got my init.sh file for installing seafile. When calling: if [ ! -f /config/init_completed ]; then ... else # start seafile sudo bash ${INSTALLPATH}seafile.sh start sudo bash ${...
1
vote
1answer
57 views

“Cannot create directory … no such file or directory”

When executing the dockerfile, the command RUN cp -rf roundcubemail-1.2.3/. /var/www/html/ is executed and I'm getting the following error: cp: cannot create directory '/var/www/html/': No such file ...
1
vote
1answer
42 views

“docker-compose build” returning “exec format error”

When running the "docker-compose build" command, I'm running the following error: standard_init_linux.go:207: exec user process caused "exec format error" ERROR: Service 'seafile' failed to build: ...
-4
votes
1answer
37 views

How shall I find out all the terminal types that can work?

How shall I find out all the terminal types that can work? On Lubunu 18.04, The followings work $ TERM=xterm top $ TERM=vt100 top but the following don't: $ TERM=lxterminal top 'lxterminal': ...
0
votes
1answer
59 views

Is there something which a container can't be used for while a Linux virtual machine can?

When would you choose to use a Linux virtual machine instead of a docker container? Is there something which a docker container can't be used for while a Linux virtual machine can? Is it correct ...
-1
votes
0answers
23 views

Does a Docker image file require anything about the host Linux OS?

Docker image files distributed on Docker Hub can have different packages already installed. Can I run any image file on my up-to-date 64 bit Lubuntu 18.04? Does a Docker image file require anything ...
0
votes
1answer
42 views

Does every docker container directly present only a shell?

Does every docker container directly present only a shell ? I have a python image: $ sudo docker image list REPOSITORY TAG IMAGE ID CREATED SIZE ...
2
votes
1answer
33 views

Overlay storage driver internals

A follow-up from this question. My further reading on Docker storage drivers revealed that the overlay driver merges all the image layers into lower layers using a hard link implementation which ...
-5
votes
1answer
47 views

What is “a light-weight namespace container” created by systemd-spawn?

man systemd-nspawn says systemd-nspawn may be used to run a command or OS in a light-weight namespace container. In many ways it is similar to chroot(1), but more powerful since it fully ...
-2
votes
0answers
36 views

Where can I find all the possible Go templates?

docker inspect has an option --format , -f Format the output using the given Go template Where can I find all the possible Go templates that can be used with docker inspect -f? Thanks.
1
vote
1answer
33 views

Running Docker containers with different storage drivers

Is it possible to launch different Docker containers with different storage drivers? For example, container 1 with AUFS and container 2 with Overlay2?
-1
votes
2answers
95 views

Why does a CentOS Docker container says it is Ubuntu?

I am trying to verify When choosing a Docker container image file for my Ubuntu, what do I need to match between them? On Lubuntu, a CentOS container says it is CentOS, by $ sudo docker run centos ...
1
vote
2answers
36 views

How shall I use `docker rm -v`?

Manpage of docker rm says Remove a container and its volumes $ docker rm -v redis redis This command will remove the container and any volumes associated with it. Note that if a volume was ...
1
vote
1answer
273 views

Dockerfile - debian Jessie 404: packages not found [closed]

I'm trying to set up a docker container on Debian 9.8, but I keep getting the following error when I run docker-compose up -d: W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/...
-3
votes
1answer
69 views

What is a docker container from Linux's point of view? [closed]

A docker container is a concept understood by docker daemon. What is a docker container from Linux's point of view? You can stop, kill and destroy a container. Is a container itself a process? Is a ...
1
vote
1answer
25 views

Is Docker Machine only used when dockerd is running in virtual machines not in actual machines?

https://docs.docker.com/machine/overview/#whats-the-difference-between-docker-engine-and-docker-machine says Docker Machine is a tool for provisioning and managing your Dockerized hosts (hosts ...
-4
votes
0answers
20 views

Does “Docker Machine” consists of `docker-machine` and `docker` or just `docker-machine`?

https://docs.docker.com/machine/overview/#whats-the-difference-between-docker-engine-and-docker-machine says Docker Machine is a tool for provisioning and managing your Dockerized hosts (hosts ...
-3
votes
1answer
39 views

Can the virtual machines created by Docker be used in a standalone way without Docker?

Docker can creat virtual machines to be used as nodes in swarms. Can the virtual machines created by Docker be used in a standalone way without Docker, or are they only usable by Docker? For ...
-7
votes
1answer
57 views

Does Docker work with VirtualBox but not with KVM/QEMU?

Docker can creat virtual machines to be used as nodes in swarms. The machine drivers contains VirualBox but no KVM/QEMU. Does it mean that virtual machines created by KVM/QEMU can't be used as ...
1
vote
2answers
45 views

Do `docker container rm` and `docker container kill` effectively achieve the same?

From manpages: docker container rm will remove one or more containers from the host node. The container name or ID can be used. This does not remove images. docker container kill: The ...
-2
votes
1answer
33 views

Does tagging a Docker image create a copy of the image?

Does tagging a Docker image create a copy of the image? It seems to me tagging by itself shouldn't. But the following command seems to imply so. Thanks. $ docker image ls REPOSITORY ...
0
votes
1answer
99 views

Error when installing docker on Debian 9 stretch: repository … does not have a Release file

When trying to install docker on Debian 9.8 I get the following error message when running sudo apt update or sudo apt-get update: E: The repository 'cdrom://[Debian GNU/Linux 9.8.0 Stretch - ...
-4
votes
1answer
38 views

How can I install a package in a Docker Ubuntu container?

I use the default downloaded Ubuntu Docker image. I want to find the network interfaces and IP addresses in its container, so I would like to install the package containing ifconfig, but why do I fail?...
1
vote
0answers
217 views

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.140.204 80] [duplicate]

I'm trying to get a project running locally on Deepin. The project relies on node 6.10, I understand that it's an old version but it works. When the Dockerfile tries to run the sudo apt-get update, it ...
0
votes
0answers
21 views

Mapping Docker container UDP port to different host port causes only partial communication failure [migrated]

I have a game server running inside a Docker container that listens on UDP port 1111 (EXPOSE 1111/udp). When I publish this server on the same port on the host (-p 1111:1111/udp) everything works as ...
0
votes
1answer
41 views

Centos7 Host, KVM pfSense domain, and Docker in a box

I am trying to get routing straight on my server. From the pfSense domain, I can ping IPs in the management and DMZ networks. From the virtual host, I can ping the same IPs pfSense is the gateway for ...
0
votes
1answer
41 views

Docker running an app with NET_ADMIN capability: involved risks

I'm trying to run an app in a docker container.The app requires root privileges to run. sudo docker run --restart always --network host --cap-add NET_ADMIN -d -p 53:53/udp my-image My question is: ...
0
votes
0answers
58 views

File - can't access xxx - bad address

Docker on raspbian suddenly stopped working. I tried to restart/rebuild the image and then reinstall the docker without success. the problem seems to come from the directory /var/lib/docker/overlay2/ ...
1
vote
1answer
75 views

Alpine Linux apk add gives permission error

I'm trying to install packages in a docker image based on alpine. The host system is CentOS system, system-release: CentOS Linux release 7.6.1810 (Core). Here's what I do: # docker run -td alpine:3....
2
votes
1answer
156 views

Can't install openjdk8-jre in Docker Alpine Linux image

Alpine 3.7 and 3.9. apk add htop works fine. apk add openjdk8-jre hangs forever. Problem step: (25/36) Installing openjdk8-jre-lib (8.201.08-r0) usr/ (dir) usr/lib/ (dir) usr/lib/jvm/ (dir) usr/lib/...
0
votes
0answers
85 views

SSH works but not SFTP

I am working on a project for a client from which we are using multiple docker containers on a host machine. I need to copy some files from my computer to the host machine, but when using an SFTP-...
0
votes
0answers
27 views

Jenkins Docker exec : No such file or Directory

I installed Jenkins using below command sudo docker run -u root -d -p 8081:8081 -p 50001:50001 -v /data/jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock ...
1
vote
1answer
38 views

Is it possible to run a script on the host machine when a docker container starts or stops

I am to start a docker container and bind an IPv6 address to it by running docker run -itd --restart=always --name=<container> --net=br6 --ip6=2001:db8:8:2::100 <image>. However, I have to ...
0
votes
1answer
33 views

Syslog to console, drawbacks?

I am wondering are there any drawback (performance wise) when output from some software is not logged to a file, but instead to console? Specific case would be running Docker containers, as some of ...
0
votes
0answers
13 views

How to simulate a Timeout on the dockerd processes?

Does anyone have any suggestion on how to simulate a timeout of the dockerd demon? I have tried kill -SIGSTOP ; but the dockerd demon does not restart even though it has a systemd setting of ...
2
votes
1answer
30 views

Terminal runs commands on startup and I cannot find where they are coming from

I have accidentally put winehq.key into /etc/bash_completion.d/ in the process of docker-machine completion installation. I've tried to set up docker-machine auto completion and followed these ...