2022 Developer Survey is open! Take survey.

Questions tagged [docker]

Docker is an application to create containers for applications.

Filter by
Sorted by
Tagged with
1 vote
0 answers
6 views

No loop device in container even with loop module loaded

I am trying to make it possible to make and mount loop devices from within a container. This happens to work on my own development system, but is failing to work on our build server where it must be ...
user avatar
-1 votes
0 answers
18 views

SSH connect to a docker container directly, without ssh the host first

On my local computer, I connect with ssh to a distant VPS: ssh user@1.2.3.4. In this VPS, a docker container is running (for example docker pull nvidia/cuda:11.4.0-devel-ubuntu18.04 and docker run -...
user avatar
  • 2,243
1 vote
1 answer
31 views

How to do offline-installation of multiple images via podman load/save

I am using an app depending on the image docker.io/library/mariadb:10.7. Images can be pulled, and saved in a tarball: podman pull \ docker.io/photoprism/photoprism:latest \ docker.io/library/...
user avatar
  • 11
0 votes
0 answers
30 views

Upgrading Docker using APT deletes all images and containers

The following commands are used in a maintenance script in order to upgrade packages on the Ubuntu system: dpkg --configure -a DEBIAN_FRONTEND=noninteractive apt upgrade -yq -o Dpkg::Options::="--...
user avatar
  • 3,307
0 votes
0 answers
167 views

docker: Error response from daemon: failed to create shim: OCI runtime create failed

I'm running into this error while running even an official docker image such as OpenJDK or even hello-world: # docker run hello-world docker: Error response from daemon: failed to create shim: OCI ...
user avatar
  • 251
1 vote
2 answers
30 views

Can the Linux base images for Docker containers be used in environments other than Docker?

Containers share the machine’s OS system kernel https://www.docker.com/resources/what-container/ If container's share the machine's OS system kernel, is it true that there isn't a kernel included in ...
user avatar
0 votes
0 answers
29 views

How to setup local server on Linux for testing Dokku?

I'm new to Dokku and nginx server and I'm trying to set up server locally on Linux Ubuntu 20.04 for testing purpose instead of using one such as Hetzner (Cloud) or DigitalOcean (which already contains ...
user avatar
  • 135
2 votes
2 answers
57 views

`docker run --rm debian:jessie apt update` does not work on Fedora host

I'm having trouble debugging a docker issue. On my machine as host, every apt/apt-get/apt-cache command in the debian:jessie image hangs and I can't figure out why. On other machines with docker, when ...
user avatar
  • 61
0 votes
0 answers
16 views

add a rule into DOCKER-USER from shorewall

I See that the rules that I am adding in /etc/shorewall/rules are setup fine but DOCKER filter rules are being applied before the ones that I set up in shorewall rules. I have seen that DOCKER-USER ...
user avatar
  • 505
0 votes
0 answers
183 views

Alpine: How to forceful remove freetype package from OpenJDK Runtime Environment(Alpine 8.302.08-r2) even if it would break dependencies?

I'm trying to setup a docker config for my java spring applicaiton. So appln is running absolutely fine but We found out that there is a apk package called as freetype which is having critical ...
user avatar
  • 101
1 vote
0 answers
28 views

How to install Java environment (jdk) jdk1.8.0_45 on alpine linux?

When I look at package lists they suggest that all sorts of Java 1 packages exist for Alpine, but when I try to install them I always get apk add openjdk1=1.8.0_45-b14 apk add openjdk1=1.8.0_45-b14 ...
user avatar
0 votes
0 answers
31 views

How do I start a Docker container in custom network namespace?

How do I make docker run to setns to the network namespace of my choice when starting a container? I want something like --net host mode, but aiming to the namespace of Docker server itself. Or should ...
user avatar
  • 5,126
0 votes
0 answers
10 views

OpenVPN problem wih routing between subnets

Hi i have set up a system like this Situation Graph Here I have the server network at 192.168.255.1/24 and 2 subnets 10.0.0.1/24 and 10.0.1.1/24. I want these to be able to call a client that is in ...
user avatar
-1 votes
0 answers
40 views

"docker rm $(docker ps -aq)" is not working on linux terminal

I am using MX-21 as my main distro. When I try to run this command docker rm $(docker ps -aq) to delete all the existing containers in my system, it does not work out. Instead, it shows this message. &...
user avatar
1 vote
0 answers
17 views

Reverse proxy on my Linux VPS

I have a Linux Server with several docker instance running. it looks like that : SSH Port: 22 Container1 port : 4000 Container2 ports: 5000, 5001, 50002 Currently, i'm using https://...
user avatar
0 votes
0 answers
21 views

Debian: Minimum LibreOffice Packages to Convert docx Files to pdf in Headless Mode

I'm developing a Docker container with a Debian 10 base image (this is a fixed dependency) that converts docx files to pdf using LibreOffice (soffice) in headless mode. I've got it working with the ...
user avatar
  • 101
0 votes
0 answers
32 views

Cannot mount NFS volume with Docker, can mount it otherwise

I'm trying to set up an NFS volume shared by a TrueNAS server to use with my Docker container using Docker compose: volumes: data: name: data driver: local driver_opts: type: nfs ...
user avatar
  • 77
0 votes
0 answers
12 views

Commands after the snap enable docker command is erroring out in script file

I have a script file as follows. #!/bin/sh sudo snap enable docker sudo docker image ls sudo docker ps -a sudo docker start postgresql-dev sudo docker start dev-pgadmin psql -h 172.17.0.2 -U ...
user avatar
2 votes
1 answer
55 views

Existing .so file cannot be loaded even though it exists, seems to depend on Docker host OS

I have built Qt6 in an Alma8 based Docker container, with the Docker host being Fedora 35. Under some circumstances (described below), all Qt libs cannot load libQt6Core.so[.6[.2.4]]. But that file ...
user avatar
0 votes
1 answer
29 views

How to downgrade the kernel in Alpine Linux (in Docker)?

I'm looking to test a DirtyPipe PoC and I need a vulnerable kernel version (5.8-5.15) to test on. I'm running an Alpine container in Docker for this purpose however am open to other Linux distros (...
user avatar
  • 273
4 votes
1 answer
274 views

How to unset an invalid environment variable in bash?

I'm trying to add functionality to an existing docker-entrypoint script, the creators of the image decided environment variables would have the form key.subkey=value. I didn't know it was an invalid ...
user avatar
0 votes
1 answer
98 views

An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused - docker - symfony

My code (symfony 5.4) fails to persist data to the database. Here's my setup:- docker-compose.yaml ... #MySQL Service db: image: mysql:5.7.22 container_name: db restart: unless-stopped ...
user avatar
  • 182
0 votes
2 answers
46 views

ssmtp in docker image

I'm trying to setup ssmtp (for sendmail) in Docker image. To do so I've created the folowing Dockerfile: FROM php:7.4-apache # Install paquet requirements RUN set -ex; \ # Install required system ...
user avatar
  • 131
-1 votes
1 answer
42 views

Why are these xhost commands used here for running a docker container?

I am running a docker container. The suggested way to run it is $ xhost + access control disabled, clients can connect from any host $ sudo docker run -it --rm --ipc=host -e ...
user avatar
  • 89.8k
0 votes
1 answer
13 views

Shell script refer to another directory when building Dockerfile

I am using MacOS. My project directory structure is like this: myapp/ app.js Dockerfile subapp/ Dockerfile script/ - myshell.sh In myshell.sh , I write shell script to build the ...
user avatar
0 votes
0 answers
20 views

Capstone install

I want to build app from some source code, i run this in docker. have this error /vulnscan/src/disassembler.h:4:10: fatal error: capstone\capstone.h: No such file or directory #include "capstone\...
user avatar
2 votes
0 answers
30 views

Docker overlay network connection between containers lags simetimesin multiples of 1s

Two containers talking to each other on overlay network with high traffic (connection frequency) occasionally got connection lag almost exact multiple of 1s. It doesn't matter whether it is same host ...
user avatar
  • 1,583
0 votes
0 answers
32 views

Using Process Substitution in docker as input <(command)

Recently, I faced some problems in developing bash pipelines with docker. This regards to the use of process substitution [<()] as input for a specific docker command. I know that this is a problem ...
user avatar
0 votes
0 answers
24 views

How to mount a cifs Partition for docker-compose?

I want docker-compose to mount one of the volumes to a mounted CIFS partition. I used the seafile docker-compose file and changed the volumes to ... db: ... volumes: - /mnt/nas_share/...
user avatar
  • 315
0 votes
0 answers
36 views

How to allow the docker container to reach host's X11 socket without --net=host?

The old trick, using '-v /tmp/.X11-unix:/tmp/.X11-unix' to allow to use the host container no longer works. I could make it work using '--net=host', but that makes the guest use the whole net ...
user avatar
0 votes
0 answers
83 views

rootless docker systemctl daemon errors

I am trying to run docker on rootless user, but I can't seem to start daemon in any way using systemctl. I use Debian 11. To log into the user with root privileges I use key pair and any login to ...
user avatar
1 vote
1 answer
99 views

startx inconsistent behavior

I have a SSH server that is responsible for running dwm binary through X forwarding, on my client computer, i have a shell script that replaces the dwm binary on /usr/local/bin, inside that script, i ...
user avatar
0 votes
1 answer
53 views

Within container dpkg install from deb file fails with license could not be presented

Host running ubuntu 20.04 Docker container base is nvidia's nvcr.io/nvidia/deepstream:6.0.1-triton which should be based on ubuntu 20.04 Trying to install the graph_composer deb file from https://...
user avatar
0 votes
0 answers
10 views

Where are docker events stored? Can they be redirected to syslog server?

I have a server with docker running. I can use the command docker events to monitor events as they occur. But I can also use the command option --since <timestamp> to list previously occured ...
user avatar
  • 179
1 vote
1 answer
157 views

novnc for linux docker - x11vnc returns: XOpenDisplay failed (:0) *** x11vnc was unable to open the X DISPLAY: ":0"

I was following the steps from this link- Kali In The Browser (noVNC) I have installed kalilinux/kali-rolling on docker and running the commands. When I execute the command x11vnc -display :0 -...
user avatar
  • 11
0 votes
1 answer
66 views

apt upgrade exits with code 137 inside docker container

I am trying to upgrade the packages in a Python:3.9 based docker image, before adding my own files. I have tried running the apt upgrade -y command both in an interactive container with the base image,...
user avatar
  • 143
1 vote
0 answers
34 views

chroot with mounts in unprivileged container

How can I create a mount inside a Docker container as root but without --privileged mode? The purpose is getting a chroot with /proc, and /dev mounted inside a container. I can do so with chroot and ...
user avatar
  • 111
0 votes
1 answer
228 views

Puppeteer in alpine docker with chromium headless dosent seems to work

I'm trying to use pageres in my bash script for grabbing screenshot in heruko. But running pageres with alpine:latest throws error with puppeteer. at onClose (/usr/local/lib/node_modules/pageres-cli/...
user avatar
  • 11
1 vote
1 answer
57 views

Missing shell command on Ubuntu 18.04: run

When attempting to run an updated docker container for my lab's research, I get an error within one of the packages used about a missing shell command, called "run". In particular, this is ...
user avatar
0 votes
1 answer
61 views

Why can't I access this app with 127.0.0.1?

I have a .net core app in a docker container on Ubuntu on port 80 that seems to bind start listening on http://[::]:80 (ipv6)?. I dont think this is .net specific but more the networking setup on the ...
user avatar
0 votes
0 answers
19 views

Bind mount across mount namespaces with disjoint roots

I want to bind-mount the root of one mount namespace as a subdirectory of another mount namespace's root. I'm having two problems doing so: How to refer to one root from a process in the other root ...
user avatar
0 votes
0 answers
114 views

Not able to open display on a headless docker container, but can on the host

I'm working on a headless system, and trying to emulate a display (specifically so I can render headless with blender, but the problem is more fundamental). I'm simulating a login to create the X ...
user avatar
0 votes
1 answer
20 views

Emulating LAN and WAN in a single Linux machine using containers

I want to test my data-plane application and I want to find out if there is a way using containers. After I bring up a container with my app in it, can I direct all my machine-generated Internet ...
user avatar
  • 1
1 vote
1 answer
73 views

SSH server refuses multiple connections from same client

I have a simple openssh server running in a Alpine Linux 3.15 Docker container, and a another container, also running the same version of Alpine of the SSH server) that runs a X server with dwm I'm ...
user avatar
1 vote
1 answer
63 views

Can a malicious docker image running on GNOME-Boxes compromise the host?

I'm using GNOME-Boxes to run a Fedora 35 guest inside a Fedora 35 host. If I ran a docker container, using the --privileged flag (among others), what's the most harm it could cause? I read a malicious ...
user avatar
1 vote
0 answers
52 views

Is there a way to do delta updates for container images w/o a registry?

In the context of a non-connected machine which has limited space available, is there a way to update the container image using a diff/patch mechanism? Like you call docker pull but on a binary patch ...
user avatar
2 votes
2 answers
407 views

mount: special device sda/sda1 does not exist

I'm working on a IoT Edge device based on Linux Yocto (arm_v7) and I need to mount an USB Drive. Linux version: root@7426a4ffc838:/# uname -a Linux 7426a4ffc838 4.9.80-rt62 #1 SMP PREEMPT RT Thu May ...
user avatar
  • 121
1 vote
1 answer
369 views

Understanding docker port forwarding and iptables/nftables

Given a fairly common firewall setup with nftables/iptables (OUTPUT accept, INPUT/FORWARD accept established+related, default drop): table ip nat { chain DOCKER { iifname "docker0&...
user avatar
1 vote
1 answer
42 views

nftables log output interface blank

I have nftables set to log when it drops packets. I'm trying to work out specifically how communication between docker containers is blocked. The log shows the following entry: IN=br-0353a07849d5 OUT= ...
user avatar
0 votes
1 answer
156 views

Kubernetes OutOfcpu error when Requests.cpu == Limits.cpu

I'm running Kubernetes Jobs in which I set limits and requests both to the same number of CPUs. In some of these jobs I'm occasionally seeing OutOfcpu errors When I kubectl describe pods PODNAME I see ...
user avatar
  • 1,090

1
2 3 4 5
29