Questions tagged [docker]

Docker is an application to create containers for applications.

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

sg: not found - Alpine Linux

I am trying to execute a command with a specific user group as described in the linked question (How to run a process with a specific group?) on Alpine Linux, but the system says "not found" ~/work $ ...
0
votes
0answers
11 views

Kong docker image build fail

I am on fedora. Trying to run Kong from official docker image. It is showing me the following error: ERROR: Service 'kong' failed to build: The command '/bin/sh -c chmod 777 start.sh' returned a non-...
0
votes
1answer
20 views

Could not get into docker container's bash: hydra container is restarting

Using this documentation: I've pulled the vimagick/hydra docker image Created docker-compose.yml file in ~/Soft/docker/ folder: hydra: image: vimagick/hydra command: sleep infinity volumes: ...
0
votes
1answer
24 views

`Package has no installation candidate` on Debian but not on Ubuntu

I'm using Docker with the php-fpm image, which uses Debian Buster as its OS. I'm a bit confused as why these two packages: php-smbclient and php7.3-sybase are not able to be installed, as they are ...
0
votes
0answers
11 views

Virtual inline traffic device

In the physical world in case two switches connected to each other with a cable, I can put a device in the middle, so all traffic would flow through that device. Switch A <--------------------> ...
0
votes
0answers
18 views

Does rootless Podman support varlink?

I'm currently taking a look at a bunch of stuff with PodMan. One feature that I'd like is to be able to remotely interact with my pods—start and stop them from some other service. I saw the Varlink ...
1
vote
1answer
27 views

Docker volume mount using CLI command

I've created two volumes I wish to use to store content of two folders /etc/php and /var/www inside of container: $ docker volume create dvwa_etcphp $ docker volume create dvwa_www I have a ...
2
votes
0answers
21 views

Opening of graphical app not working at second call

I need to work with a graphic application which runs in a docker container on a remote machine (running Ubuntu 16.04) which I access via PuTTY from my local Windows machine with Xming running. I ...
0
votes
0answers
21 views

How can I get the stdout history of a detached Docker container?

I would like to view the output history of a Docker container. I am running the container like so: docker run -itd --name mytest ubuntu:latest /bin/bash I can then run the following commands: ...
0
votes
1answer
45 views

script doesn't execute commands without tty

I'm trying to use script as the entrypoint of a docker container to log everything that happens in that container to a file on a mounted volume. It works great if there is a tty: $ docker run -t --rm ...
1
vote
0answers
25 views

Cron jobs not running on Kubernetes + Alpine linux

I am trying to run a cron job on Alpine Linux docker image which is then pushed in Kubernetes container. The Cron job is that I want the container to restart itself after every 15 mins. So my command ...
1
vote
1answer
39 views

Docker nginx-proxy hangs on startup

Docker version 19.03.5, build 633a0ea838 Linux xxx 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux I'm trying to setup an Nginx Proxy with Docker ...
0
votes
1answer
30 views

What is the best practice of running cron job in a docker container

My application is a Python Django running on a docker container.This application has a cron job that keeps updating the data in a database. Should I put this cron job into a separate container because ...
2
votes
1answer
36 views

Missing c++ headers under alpine clang

I'm trying to build a small alpine-based docker container to build c++ app using clang++. Dockerfile looks like this: FROM alpine:3.10 RUN apk add --no-cache clang But when I'm trying to compile a ...
0
votes
1answer
39 views

Docker file fails to build

I am a software developer by trade. I know little about linux and general networking but I do use docker a lot. About a month ago I dual booted. I now have Manjaro Linux and Windows 10. I am working ...
0
votes
0answers
21 views

Privoxy not logging after debug level set

First: Thank you all for building this awesome community. I'm learning a lot. Second: I've installed privoxy 3.0.26 in a docker container on a Debian server and set the log level in /etc/privoxy/...
0
votes
0answers
32 views

How to run a Dockerfile with elevated privileges?

I have a Kafka instance running on my local machine (macOS Mojave) and I'm trying to have a Docker container see that. There are two files in the Java program that will be built as the Docker ...
0
votes
1answer
19 views

Cannot access ubuntu docker container

How do I access a docker containers web interface. I pulled down the latest ubuntu container with docker pull ubuntu. I then did docker run -it ubuntu bash and installed the python dependencies to run ...
0
votes
0answers
30 views

Bridged Docker Container not accessible via wireguard interface

My Docker Host has multiple Containers running, which I want to access via my wireguard interface wg0. They are reachable via the Interface enp3s0 which has 192.168.0.12 but not on the wireguard ...
0
votes
1answer
32 views

How to use vmware and docker on Windows 10 at the same time

I've been using vmware on Windows 10 for some time now. Recently I installed docker on Windows 10, then vmware stopped working. I can switch hypervisor off to make vmware back to work, but that ...
0
votes
0answers
24 views

Grafana Dashboard ID 315 issue

I have configured the running application on kubernetes cluster and for monitoring i am using prometheus and grafana. For kubernetes pods monitoring i am trying to use Grafana dashboard: Kubernetes ...
0
votes
1answer
40 views

Docker rmi image no such image error

I am trying to remove a docker image using docker rmi <image> command, but I am getting "No such image" error. Below is the sequence of commands I executed. Why does it show I have an ubuntu ...
1
vote
0answers
21 views

How I can detect whether the database layer is either mysql or mariadb using only netcat

Sometimes on docker entrypoint files I need to detect whether the database layer is either mysql or mariadb in order to provide the correct configuration for my application whilst I develop docker ...
0
votes
1answer
10 views

charset issues with firefox on docker

My host is a Debian Buster build and i'm attempting to build a firefox-esr container (alpine base). While i am able to bring up the brower using --net=host, i see an issue with charsets. following ...
0
votes
1answer
23 views

Trying to run a postgres script as another user from a Unit file, but variable is not being passed

I have a docker container, and -e DEV_ENV is defined with the docker run command, and this the unit file I built to run a script... [Unit] Description=Script that creates environement users and ...
0
votes
0answers
24 views

How can I safely pass an argument containing '{{}}' to a bash script? [duplicate]

The following arguments are valid for docker command: docker ps -f"status=exited" --format 'table {{.Names}}' #output: # jovial_hellman # modest_blackwell So I have created this script docker-ps-...
0
votes
1answer
34 views

Append a line in a service file

I've built a docker container and I need to make changes to the service.nginx file. I have the following variables defined: LINE=$(cat /usr/lib/systemd/system/nginx.service | grep -n "ExecStart=" | ...
0
votes
0answers
13 views

Move docker images without using `docker`

I have a Docker host that became unreachable for me. The only thing I could get was snapshots of its volumes. I need to extract the docker images from those snapshots. I created regular volumes from ...
1
vote
1answer
97 views

systemd “Failed to set up mount namespacing” in Docker container

I recently updated a Docker that uses systemd internally from Debian stretch to Debian buster. And since then it's not working. So accoding to systemctl status it fails to setup the namespace: Dec ...
0
votes
0answers
29 views

How make timeout docker container after restart server?

sudo docker run --restart always -itd I need to make a docker container start timeout after rebooting the machine. About 10 seconds. the container starts after rebooting itself --restart always, but ...
0
votes
0answers
10 views

Memory attribute of ContainerDefinitions

Docker container is a user space process(with pid) running in Docker host, but in separate process namespace(non-default), as shown below: $ docker ps -a CONTAINER ID IMAGE ...
1
vote
1answer
63 views

Windows Subsystem for Linux (WSL) not actually saving $DOCKER_HOST

The situation: I develop on a windows VDI that uses the WSL to run docker, and I'm actually using a remote docker daemon running on a Red Hat server. Locally, I have the DOCKER_HOST variable set to ...
0
votes
2answers
29 views

docker serivce starts every hour though it is disabled

Though the docker.service is disabled, it is starting every hour, at the top of each hour. I stop it and for unknown reason it starts again at the top of next hour.... I don't find any crontabs which ...
0
votes
1answer
37 views

How to install PHP 5.3 on CentOS 7 (troubleshooting propose)

I would like to install PHP 5.3 version in CentOS 7 for development propose. I know this PHP version has security problems but I need to validate why a bug happens with this version of PHP with a ...
0
votes
1answer
53 views

How do I determine amount of resources that Docker host needs to provision to a container, by inspecting a running system?

My goal is to define container definitions("ContainerDefinitions") with appropriate memory size needed in RAM to launch the docker container. For example, below code snippet for jenkins container(...
1
vote
1answer
56 views

how to deal with `yum repolist is 0` and `yum list empty`?

I run a docker image (gitlab-runner) on a centos 7 host machine. In the container, it is strange that it has apt command but has no yum command.But the system seems to be a centos but not ubuntu? ...
3
votes
0answers
184 views

Cross-arch Docker container will stop emulation

I'm trying to build a portable cross-arch Docker container using QEMU. However, depending on the host system and the programs installed on the host the container behaves differently. Running the ...
0
votes
1answer
63 views

Systemd not getting pid 1 when in docker container

I am trying to bring up continuous integration pipeline and that requires me to apt install an abc.deb file inside container. The debian/control file do include: Depends: ${python3:Depends}, ${...
0
votes
1answer
75 views

too many links in /var/lib/docker error while building Docker container

Someone suggested on SO to post here. Reposting from https://stackoverflow.com/questions/59024392/too-many-links-in-var-lib-docker-error-while-building-docker-container Trying to run docker-compose ...
0
votes
0answers
251 views

transfer closed with xxxxx bytes remaining to read

Trying to download version(5:19.03.4~3-0~debian-stretch) of docker-ce using dockerfile: # apt-cache madison docker-ce docker-ce | 5:19.03.4~3-0~debian-stretch | https://download.docker.com/linux/...
0
votes
0answers
20 views

How to Install Gitlab Server with Docker on Ubuntu 18.04 LTS? Access to miki was denied

I followed step-install-gitlab tuorial. The contents of my yml file: web: image: 'gitlab/gitlab-ee:latest' container_name: 'gitlab-howtoforge-tutorial' restart: always hostname: 'miki' ...
0
votes
1answer
41 views

Bind network link exclusively to Docker container

Is it possible, with Docker, to bind a host network link exclusively to a Docker container? In other words, to move eth1 (or whatever) into a container so that it is only avalilable to that container ...
0
votes
1answer
82 views

How to test a linux kernel upgrade inside a Container

As I know Docker uses host OS kernel, there is no custom or additional kernel inside container. All containers which run on a machine are sharing this "host" kernel. Working with a containerized ...
0
votes
2answers
25 views

Make changes to a mounted volume from inside Docker container appear as if performed by a regular user while also keeping root privileges

If I use the --user argument of docker run, changes (like a simple mkdir for example) will appear as if performed by that (non-root) user. However, I won't be able to run commands like apt inside the ...
1
vote
2answers
82 views

Fedora 31 - grubby --args=“systems.unified_cgroup_hierarchy=0” broke the system

I upgraded to Fedora 31 today. All good. I came across issue with Docker so I found the solution to run grubby --args="systems.unified_cgroup_hierarchy=0" and then grub2-mkconfig Now, systems won'...
0
votes
1answer
32 views

Filter docker traffic

I have on my system many docker-containers with their own ports. Docker doing some magic with IPTables so its difficult to define some custom rules for it. For only http-connections its not a problem ...
0
votes
0answers
12 views

Python script output from docker container that is bash'd into does not 'overwrite' output lines?

I have an nvidia-docker container running, I have bash'd into it with sudo docker exec -it container_name bash and starting running a Python script which trains a model with Keras python main.py ...
0
votes
0answers
23 views

ldap_connect function in a apache - php container

I have a docker-compose.yml file with the following: web: image: nginx:latest ports: - "8080:80" volumes: - ./code:/code - ./site.conf:/etc/nginx/conf.d/site.conf ...
0
votes
1answer
19 views

stop/restart background job started by cron

I have the following cronjob which pipes docker (apache) logs into a file: * * * * * flock -n /srv/www/htdocs/scripts/pipe.lock /srv/www/htdocs/scripts/pipe_docker_logs.sh the pipe_docker_logs.sh ...
2
votes
0answers
188 views

Docker containers have no internet access

So I am recently switched to Manjaro as my daily driver on my tower and my laptop. On both I experience the same issue: Docker container can't connect to the internet. I am testing this with docker ...