Questions tagged [docker]

Docker is an application to create containers for applications.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Can't change bridge subnet or create network on Docker

I would like to build a small infrastructure entirely under Linux. For the LDAP and file server part I would like to set up a Docker server that will host the OpenLDAP and Owncloud containers. I would ...
  • 59
1 vote
1 answer
6 views

Running a docker command in a user-service

I am migrating some apps on my home service to docker. There are several background jobs, running as user-service, using these apps. But I receive the following error Got permission denied while ...
  • 111
0 votes
0 answers
12 views

Route traffic through static route instead of default gateway for docker services

In my linux based server, default-gateway is set as ip default-gateway 10.77.122.1 and static route is set as ip route 0.0.0.0 0.0.0.0 gateway 10.106.142.1 I have a java based app which is ...
  • 101
0 votes
0 answers
8 views

Deploying Virtual Machines on-demand HPC

My university has an HPC, which is currently in a usable state, but the dependencies and libraries are a mess. In the event that we reset the hardware and start from scratch, I want users across the ...
0 votes
1 answer
57 views

Variable is always empty regardless of the loop technique I use

I have a file called dependencies and its content is: blog forms geo ticketing And I have this build.sh script in which I need to loop over them. This build script would be run inside a docker ...
-2 votes
0 answers
20 views

I cant update idk wy after i installed docker

pt update Ign:2 https://download.docker.com/linux/debian kali-rolling InRelease Hit:1 http://kali.download/kali kali-rolling InRelease Err:3 https://download.docker.com/linux/debian kali-rolling ...
2 votes
1 answer
33 views

Can you add docker repository to apt-cacher-ng?

My debian 11 server1 doesn't have internet access and it installs cached debian packages from another server2 that has apt-cacher-ng installed. The sources.list file in server1 points to apt-cacher-...
  • 375
0 votes
2 answers
16 views

docker exposed port not accessible from outside even when port is opened using iptables command

I have a sample docker tar image in my linux based server and ran that though docker run command as below where 9521f101839f is image id. docker run -p 0.0.0.0:9895:9898 -td 9521f101839f So now ...
  • 101
1 vote
1 answer
25 views

why the result of `yum deplist` and `yum install --downloadonly` is different?

When I run this: yum install -y --downloadonly --downloaddir=xxx docker-ce, then I got those rpm files: container-selinux-2.188.0-1.module+an8.6.0+10825+318933f1.noarch.rpm docker-ce-20.10.18-3.el8....
0 votes
1 answer
37 views

how to enable ssh from container to Linux remote machine

we try to perform ssh / scp from docker container to remote LINUX redhat machine ssh remote_server echo $? 255 ssh -vvv remote_server OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading ...
  • 11.4k
0 votes
1 answer
6 views

syslinux bootloader unable to find the initrd.img for a custom bootable image made via Docker Containers

Description As a side project, I am trying to use Hashicorp Packer along with Docker to create Bootable disk Images from Docker Containers. Hashicorp Packer generally takes the responsibility of ...
0 votes
1 answer
15 views

How to install Pipe Viewer (pv) via microdnf on oraclelinux:8-slim?

Docker mysql:8 and latest change OS from Debian to oraclelinux:8-slim. There is a microdnf. So I'm looking for solution to install pv package.
  • 103
1 vote
0 answers
21 views

Debian Permissions denied in docker volumes for external HD

Docker in Raspberry PI 4 with external HD (NTFS type) connected. There are some docker containers running with volumes mapped to the external HD such a: - /media/myExternalHD/docker_config/app1:/...
1 vote
0 answers
17 views

ubuntu GUI on Docker

i am new to docker I'm using it because i have a project with some dependencies and i need to speed up the process of running the code on another machine. my python code will run about 3 commands : ...
0 votes
0 answers
17 views

Identify docker directory /var/lib/docker/containers/$ID/

I need to know which docker (running or not) is associated to the big directory /var/lib/docker/containers/$ID/ : $ id=d28ebf088353dd7135488f447df2a2be6f7bc84df44298bc1a869a78d8a943f2 $ du -sh /var/...
  • 1,539
0 votes
1 answer
25 views

No route to host when deploying apache2 config to httpd service?

I have a strange issue: so far I was using apache2 as proxy server (as docker container), 80 and 443 works without problems. Now I'm trying to migrate to httpd container (v.2.4.54). But as soon as I ...
3 votes
1 answer
64 views

How to figure out which package manager to use within docker image

I'm trying to write a Dockerfile and need to install wget in the docker image. I'm never sure how to figure out which distro a base image uses though, or which package manager is used. An example ...
0 votes
0 answers
45 views

Merge /home partition to partition mounted at /

My current situation is the one shown below: What I want to do is to remove /home partition and have it as a directory in the file system mounted at / I consulted this in order to do so but in my ...
  • 1
0 votes
0 answers
15 views

How to build custom containers for paaas services like heroku without docker

I want to build a paas service like heroku, but i have difficulty running the client application, Is the client app running using chroot? /fakrechroot/other? Sorry, I've tried to search on Google but ...
  • 13
0 votes
0 answers
12 views

IPTables rules to access SERVER B (Docker container) through Host A with port forwarding

Thanks for reading my question :) I am trying to send HTTPS request from a Client (C) to a server (B) that is within a Docker container on a host A. C is connected to A through a WIFI connection (A is ...
  • 1
0 votes
0 answers
53 views

New docker install internet connection issues on Arch with AMD CPU

I have a new computer build which I've installed Arch Linux on. Everything else seems to work correctly as far as I can tell. Though my new docker install using pacman does not seem to set it's ...
0 votes
0 answers
80 views

Consistently losing connection to deb.debian.org over HTTP during apt-get install

I have a weird recurring issue. I'm using Docker to run a Ruby container on Mac OS. The Dockerfile is pretty normal: FROM ruby:2.7.6-slim RUN apt-get update -qq && \ apt-get install -y git ...
0 votes
0 answers
15 views

What is the cni.lock file for?

What does the $HOME/.config/cni/net.d/cni.lock file do for (rootless) podman? (I've read cni.lock exists in Docker too, so I've tagged this post Docker as well.) I can control where the container's ...
2 votes
1 answer
72 views

Why does mounting this ext4 image fail?

I'm learning about Linux filesystems, and am trying to follow instructions how to create a ext4 image, mount it to a directory, and run debootstrap in that mounted directory. Step 1 of my instructions ...
  • 1,381
1 vote
1 answer
29 views

Why is my namespace not detected?

I tried form home,then sudo su - ip netns exec 5bd337503b01 ip addr show Cannot open network namespace "5bd337503b01": No such file or directory pwd shows /var/run/docker/netns Why?
0 votes
1 answer
59 views

How to route traffic from a wifi AP via a docker container on a Raspberry Pi

I have a container A running a VPN client, then I traffic other containers' (B and C) traffic via container A. Is there a way to create a container D, which internally is running something like HostAP ...
  • 1
0 votes
1 answer
59 views

How to force Docker to run my script using bash, and not sh

This is my script: #!/bin/bash # some bash code here And this is my Dockerfile: FROM node:lts-bullseye-slim COPY . . RUN /Script.sh And here's the error I get: Step 5/5 : RUN /Script.sh ---> ...
0 votes
0 answers
64 views

docker login stopped working

I was playing around with docker & docker-desktop last week. I successfully did a (cmdline) docker login to our gitlab registry using an accesstoken I created and managed to pull some of our ...
  • 123
0 votes
0 answers
72 views

Device "ip_tables" does not exist on Alpine Linux

I'm trying to run a docker-in-docker (dind) (more specifically, docker:22.06.0-beta.0-dind-rootless) image on a Alpine Linux host, that is running inside VirtualBox, whenever the container starts up, ...
0 votes
0 answers
27 views

NFS mounting between three machines

Struggling to understand a concept - how to properly mount nfs between 3 devices in Docker device A : /srv/nfs * bare-metal nfs server device B (docker/nfs client): - mount -t nfs /srv/nfs /mntB/dataB;...
  • 1
0 votes
0 answers
51 views

Creating docker image of my system in its current state

I want to create a docker image of my own system in its current state. Here, i found a method that uses the debootstrap tool to create an image: $ sudo debootstrap focal focal > /dev/null $ sudo ...
0 votes
0 answers
29 views

Docker service restart overwrites host's resolv.conf

I have a namserver configured in my /etc/resolv.conf in ubuntu 18 to resolve dns urls on the vpc. Whenever I do a sudo systemctl restart docker, the host's resolve.conf gets overwritten and my ...
  • 101
0 votes
1 answer
56 views

Passing printer inside docker

I am trying to create a docker image with cups to handle my printer. When I do this in my docker compose, cups recognizes the printer and I can add it. On the host: $ lsusb Bus 001 Device 008: ID 04a9:...
1 vote
1 answer
40 views

Connecting to WIFIonICE fails because a secondary connection of the base connection failed

I am travelling with Deutsche Bahn. I use a Debian Testing with Docker installed. I am aware of the necessary workarounds, e.g. described here or here, and applied them. Unfortunately connecting to ...
0 votes
0 answers
5 views

Elasticsearch in Docker max file descriptors issue

I'm trying to run a container from a custom Docker image of Elasticsearch. It's crashing with a [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] How ...
  • 101
1 vote
0 answers
23 views

psql asks for a password when username in host and postgres server are identical?

I have a postgres server running in a docker container. I added a user there named "myuser". I also have a linux user named "myuser". Then (as root) I do: $ su - myser $ psql ...
  • 231
0 votes
0 answers
13 views

Why does my Backup Cronjob not work? [duplicate]

I am currently trying to Backup my persistant Docker data once a week. But somehow my cronjob wont work. Cron has no problem with other jobs. Just with this one and i dont understand why. I edited the ...
1 vote
1 answer
39 views

Podman Ps Format help

I am trying to list podman ps in a very readable format using podman ps -a --format="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{....
2 votes
1 answer
227 views

What does it means when the docker daemon failed to add an interface to sandbox?

I am running several docker containers and decided to reorganize them (split the configurations into folders gathering dependent services instead of having one big heap). Everything was going fine ...
  • 1,358
0 votes
2 answers
632 views

How to install specific version of python on Alpine linux

I am using docker's official docker image and want to install python3.9.6 Running this installs python 3.10.x apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python and I can't ...
  • 101
0 votes
1 answer
80 views

Installed package docker-compose-plugin but can only start it from /usr/libexec/docker/cli-plugins/docker-compose [solved]

I installed docker-compose through $ sudo apt-get install docker-compose-plugin and as I see by the output of dpkg -L docker-compose-plugin: /. /usr /usr/libexec /usr/libexec/docker /usr/libexec/...
  • 323
0 votes
0 answers
44 views

Problem with installing Docker and docker-compose (Kubuntu 20.04) Installation errors

I had a broken docker and docker-compose installation so I tried to remove it as clean as possible in order to undertake a new, clean, installation. Look my previous thread So I followed these guides ...
  • 323
0 votes
1 answer
59 views

Docker Ubuntu container on Debian host with custom CUDA/cuDNN

I have access to Debian 11 server, where some arbitrary NVIDIA driver and CUDA versions are installed. However, since many people use the server, different versions of CUDA and cuDNN are required by ...
  • 103
0 votes
1 answer
76 views

Docker on Debian Failing to Bind to Port 80

I am running Docker on Debian 11. I deploy an Nginx container and it fails to bind to port 80 even though port 80 is not in use by any other process. I even tried running Docker as root. Here's the ...
0 votes
0 answers
41 views

How do I correctly uninstall a broken installation of Docker and how to reinstall it? (which packages are needed/which not)

how do I uninstall a broken Docker installation absolutely clean such that I can start a proper re-installation? OS is Kubuntu 20.04 Obviously I had at least some components (docker swarm) installed ...
  • 323
0 votes
0 answers
17 views

mdadm stop ramains device file in privileged container

I am testing s/w raid in container environment. Issue is that garbage files of mdadm remain in host when I stopped raid device in privileged container. Below is creating s/w raid with two NVMe-oF ...
1 vote
1 answer
53 views

ufw blocks communication between docker containers

I have setup two docker containers for a Magento instance and a redis instance. For now, I only want to allow certain IP addresses to access the website, so I enabled ufw and added some entries. The ...
  • 570
0 votes
1 answer
48 views

Chown breaks in bound volumes with Docker user namespace remapping: "Operation not permitted"

I followed the instructions here for enabling user namespace remapping. However, now inside of a container I can no longer change the ownership of a -v bounded volume. I'm using Docker on Fedora with ...
  • 101
0 votes
0 answers
102 views

Docker overlay folder with host folder

My situation is the following: I am having a docker image/container in which I am compiling. I had to install some components to $HOME via the Dockerfile (so while creating the image). Let's say one ...
  • 181
0 votes
0 answers
77 views

Redirect cron to docker stderr and stdout as well as file

I have this crontab within a Docker container, with the Dockerfile command being CMD ["cron", "-f"] * * * * * python /code/etl.py > /proc/1/fd/1 2> /proc/1/fd/2 This is ...

1
2 3 4 5
30