Questions tagged [docker]

Docker is an application to create containers for applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

gpg timeout in Docker build on Mac only

This Dockerfile fails to build on Mac (using Docker-Desktop for Mac), but succeeds on Linux: FROM ubuntu:xenial RUN apt-get update \ && apt-get install -y --no-install-recommends \ ...
0
votes
0answers
17 views

docker prompts for password (osx)

I just installed Docker Desktop for Mac, but docker commands (docker info, docker build, etc.) prompt me for a password. I know this can be silenced on Linux, but MacOS does not have usermod. How do I ...
1
vote
1answer
901 views

How to properly log and view nftables activity?

On Debian 10 buster I am having problems with docker containers unable to ping the docker host or even docker bridge interface, but able to reach the internet. Allowing access as in related questions ...
1
vote
0answers
89 views

Unable to install WebLogic image docker

I want to create an empty domain with an Admin Server: nunyet@lw202050777:~/weblogic/backoffice$ sudo docker run -d -p 7002:7001 -p 9004:9002 -v $PWD:/u01/oracle/properties store/oracle/weblogic:12.2....
0
votes
0answers
19 views

Profiling Docker using gcov, no .gcno file gets generated

I am trying to profile the Docker daemon using gcov. I am interested in seeing which lines of kernel code get executed while running Docker. I am building Docker from source (from https://github.com/...
1
vote
1answer
199 views

Running an s6 service on start-up in Artix Linux

I have installed docker on my machine, but I cannot figure out how to make the service run on startup. local/docker-s6 20200907-1 (s6-galaxy) s6 service scripts for docker On Arch Linux with ...
1
vote
1answer
115 views

Help solving an elusive file descriptor leak

Over the last 6 months I've been facing an issue I can't seem to get rid of: apparently random "too many files open" / "can't open TCP/IP socket (24)" / "getaddrinfo: can't ...
0
votes
0answers
106 views

Docker run extremely slow (15 seconds for hello-world)

It seems that docker run is extremely slow on my machine. I'm using Arch Linux, and I installed the docker package using pacman. # uname -a Linux REDACTED 5.8.13-arch1-1 #1 SMP PREEMPT Thu, 01 Oct ...
1
vote
1answer
52 views

Can iptables REDIRECT back into a docker container

Let's say I have a docker container on a docker network with ip 172.20.0.2. Inside that docker container there are two processes running. An http server listening on port 8000 that always replies '...
0
votes
2answers
303 views

Using iptables to redirect all docker outbound traffic back into container

I've been stuck on this problem all day and am keeping my fingers crossed some iptables expert reads this and can help me please. I would like to force all my docker containers's outbound traffic to ...
1
vote
0answers
96 views

Seems like firewalld is not honouring rich rules, to give docker container outside connection aside from ping

I'm on Fedora 32 5.7.16-200.fc32.x86_64, with the package firewalld: firewalld-0.8.3-1.fc32.noarch, and my Docker containers (all of them, with every image) don't have internet access by default, or ...
0
votes
1answer
170 views

Rabbit mq handshake_timeout

There is a rabbitmq running on docker on my ubuntu aws server, which I connect to from my local pc app. After setting up https domain on nginx, it broke up (I am not sure if it the reason). I tried to ...
1
vote
0answers
220 views

Decrypting a file with GNU PGP inside a container: gpg: no valid OpenPGP data found

I'm trying to decrypt a file with a GPG private key I was given and a passphrase. We are using a Docker container running ubuntu 18.04 LTS for our decryption process. The docker container runs a shell ...
0
votes
0answers
38 views

configure user for docker on Linux

I have installed docker on Linux Centos7 environment. I can run docker command as sudo: [xyz@innolx20122 ~]$ sudo docker run hello-world **Hello from Docker!** This message shows that your ...
2
votes
1answer
61 views

unable to install anything in Dockerfile

Docker newbie here, I want to create a new image based on another image I pulled from Dockerhub which by itself works great but I wanted to add some tools to it. My Dockerfile is very small and it ...
0
votes
0answers
828 views

Inside alpine dockers: Permission denied when trying to chmod of a file

I have an alpine docker running, and files are copied into /root/.ssh/ Now when I open a shell in this docker and I change the permissions of said file: chmod 400 /root/.ssh/id_rsa I get an ...
0
votes
0answers
39 views

How to disable Protocol X in MySQL?

I think this relates to "Protocol X" as used by the MySQL console: bash-4.2# bash-4.2# telnet alice 33060 Trying 172.21.0.2... Connected to alice. Escape character is '^]'. �^CConnection ...
0
votes
0answers
1k views

MySQL ERROR 2007 (HY000): Protocol mismatch; server version = 11, client version = 10

It's not clear whether this has more to do with port collision or something related to "X protocol" and perhaps disabling "X protocol" or changing its welcome message. Might this ...
1
vote
1answer
1k views

PHP-FPM creating files as root when configured as www-data

In a multiple-container Docker application deployed with docker-compose I have a container built from alpine running PHP-FPM. That container is used both for providing PHP to the Nginx container, but ...
7
votes
1answer
6k views

Getting series of file conflicts like runc and containerd when trying to install docker on CentOS 8

I get what I believe is a file conflict error when I try to install docker/docker-ce on CentOS 8. This is also a follow up from How to install docker on CentOS? So here's what I do to get the error: ...
0
votes
1answer
16 views

X lock-ups with firefox running from docker

I need a separate browser instance that is configured to connect to a specific proxy that is used for accessing restricted network, but cannot be used for regular browsing, and also to keep the ...
3
votes
1answer
2k views

Failing to install Docker CE on RHEL 7 since tonight

I am using this commands to install Docker CE on RHEL7 and I am failing with the following: This started tonight after working flawlessly for some time: sudo yum install -y yum-utils sudo yum-config-...
0
votes
1answer
969 views

How to start Docker if address is already in use?

How can I start docker on Ubuntu 20.04, if it complains that address is already in use? I tried docker-compose up -d Starting relaatiotietokannat_db_1 ... Starting relaatiotietokannat_db_1 ... error ...
0
votes
0answers
20 views

df and du average and send alert

I have nfs share which has mount point from all the container/pods as claim NFS = 50GB and its used by container as Java = 1gb -- mount point as java_data in container postgres = 20GB -- mount ...
0
votes
1answer
111 views

Why docker exec command can launch shell with nologin user?

I have a nologin user for example foo in my /etc/passwd file: foo:x:1010:1010::/home/foo:/usr/sbin/nologin After I run this docker container, then I execute the command: docker exec -it --user foo &...
2
votes
1answer
128 views

Why can't Wine run kernel-mode (ring 0) drivers in a container?

I'm not extremely familiar with systems programming or operating systems, so this is probably a stupid question. But I was trying to get a game running in Wine recently that implements an anti-cheat ...
0
votes
1answer
42 views

Will a Docker image built for Oracle Linux 7 run on Red Hat Linux 8

Can a Docker image built to run on Oracle Linux 7 be run on Red Hat Linux 8 (either under Docker or cri-o/podman)? Is there some kind of verification and/or upgrade process that can be followed? Or ...
0
votes
1answer
117 views

How to get PID from within bash shell script

I have the following code that submits several subjobs withing a docker container: #!/bin/bash for file in "all files of a given type"; do docker exec -itd "docker container"...
1
vote
0answers
181 views

Xauthority for python plotting in a docker container

I'm trying to understand how to run a docker container with an X11 server running in it so that I can do visualizations when I write some python code, and found lots of answers out there. I found many ...
0
votes
0answers
59 views

systemd service stops after startup

My goal is to create a systemd service(foo) that runs a docker container. Before and after the ExecStart , I wanted to invoke a shell script which does some setup/cleanup. I need the cleanup to happen ...
1
vote
1answer
517 views

ssh fails with pam_systemd(sshd:session): Failed to create session: File exists

I have a situation where an outside ssh repeatedly (in a fast loop) connects to an OpenSSH daemon inside a Docker container that is based on Debian 10.5. Authorization is via an authorized key in $...
0
votes
0answers
42 views

dbus configuration in order to listen to requests from within a container

I am trying to set up an app that is capable to interact with the Bluetooth dbus interface (bluez.org). My goal is having the app to be capable to pair/connect a device. I am using the java library ...
1
vote
0answers
40 views

GitLab Coexisting with SSHD on Bridge Interface

Background I am attempting to convert a server from using Docker to Podman. So far I have been able to convert all of my services (~15 in total) to systemd jobs and run them without issue. In doing ...
1
vote
1answer
327 views

LXC, Docker and iptables on the same host, timeout on port-forwarding from the container to the container

thanks for reading! I have a publicly exposed server (debian 10), used as an host, running both LXC (not LXD) and Docker. These two container services are running with a mostly original configuration (...
23
votes
3answers
3k views

Is having docker installed a massive security hole?

Suppose I have an Ubuntu machine and did sudo apt install docker.io. Did I just put a huge security hole in my machine that will allow anyone with terminal access to escalate into root? I ask that ...
3
votes
2answers
473 views

How to check if it's docker or host machine inside bash script?

I am writing a shell script for docker containers. I want to check before running my script whether it's docker container or host machine. something like this: if $MACHINE=docker; then echo proceed ...
0
votes
0answers
26 views

Restore empty docker-compose file

I was working on a sizeable docker-compose file using the nano editor. Upon saving it told me I was out of disk space. Without hesitating, I quit nano, extended my LVM and resized the FS as I have ...
1
vote
1answer
303 views

Failed to start Docker Container Engine

I did a docker installation on a Debian 10. sudo apt -y install docker-ce docker-ce-cli containerd.io when I want to start my Docker process I have this error message systemd[1]: Starting Docker ...
0
votes
0answers
173 views

Why: “systemd not detected, dockerd daemon needs to be started manually”?

This question is similar to this one: systemd not detected, dockerd daemon needs to be started manually, as I have ran into the same problem ~$ curl -sSL https://get.docker.com/rootless | sh # ...
0
votes
0answers
10 views

Best approach to create safe environment to install TensorRT

I would like to install TensorRT on a Linux machine with Ubuntu 18.04.4 to which I connect via ssh. I would like to create a virtual environment or similar to not mess with the machine. But as I am ...
0
votes
0answers
22 views

Docker Ubuntu communication

What's the hostname or ip address to use inside a flask container to communicate with mongodb in Ubuntu host ?? host.docker.internal work for Mac and windows smoothly... What about linux Ubuntu
0
votes
0answers
91 views

how to change the speed of veth-pair interface

I connect many docker containers by veth-pair. how can I change the speed of the veth-pair interface speed? Help!!! I tried ethtool -s interface_name speed ***, but it not support. maybe because of ...
2
votes
1answer
624 views

Do docker container cause slow Disk/OS performance

We have 3 servers, each of which are running RHEL 7.6. Each machine has 64G of RAM and 15 CPUs. We are preparing to install a set of services --- kafka, zookeeper, schema registry --- on all of the ...
2
votes
1answer
440 views

Connect to VNC server inside a docker / podman container with Login screen

We're currently trying to get a Ubuntu 18.04 instance up and running inside a podman container. Our goal is to be able to connect to the linux system inside the container via VNC, we're trying to make ...
2
votes
1answer
1k views

How to install docker on CentOS?

Having some trouble installing docker: [root@rolly ~]# [root@rolly ~]# sudo yum install -y yum-utils Docker CE Stable - x86_64 ...
0
votes
1answer
209 views

How to run GUI application in Docker?

I am trying to install Packet Tracer in my Parrot OS docker container following this tutorial, and my Dockerfile looks like this for now (just to test): FROM parrotsec/core COPY PacketTracer_731_amd64....
2
votes
2answers
509 views

Fail to install tcpdump package in UBI8 (Red Hat Universal Base Image)

I am building a docker image based on UBI8(Red Hat Universal Base Image), Dockerfile looks like FROM registry.access.redhat.com/ubi8/ubi-minimal RUN microdnf install sudo zip tar bash procps openssl ...
0
votes
0answers
139 views

Are there alternative/unofficial browsable package repositories for Amazon Linux 2

In the amozonlinux:2 docker image I've tried the following to figure out what are the package repositories sh-4.2# yum repoinfo Loaded plugins: ovl, priorities Repo-id : amzn2-core/2/x86_64 Repo-...
2
votes
1answer
397 views

Restart Docker Network after Resuming VM

Whenever I suspend/resume my VMs the docker networking fails to function (e.g. timeouts between containers and the host, etc.). I'm using docker in the VM, the VM is not controlled by docker. This ...
0
votes
0answers
487 views

Runnig gui inside docker using vncserver in browser

I am stuck on command that launcnes gui application inside docker. However i am able to reach vnc server, open terminal an launch the application, I would like it to open as i open novnc server in ...

1 2 3
4
5
25