As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [docker]

Docker is an open source project that automates the deployment of applications inside software containers.

Filter by
Sorted by
Tagged with
111 votes
8 answers
122k views

Is it possible to rerun kubernetes job?

I have the following Kubernetes Job configuration: --- apiVersion: batch/v1 kind: Job metadata: name: dbload creationTimestamp: spec: template: metadata: name: dbload spec: ...
0 votes
0 answers
11 views

Docker bridge host gateway doesn't work

My default bridge network isn't working properly. So I spinned up 2 containers, one is for mongodb and one is for ubuntu. These are the commands: docker run -d ubuntu bash docker run -d -p 27017:...
2 votes
1 answer
4k views

Serve Django Media Files via Nginx (Django/React/Nginx/Docker-Compose)

Context I have a single page web app using the following stack: React for the frontend Django for the backend Nginx for the webserver The web application is dockerized using docker-compose. My ...
0 votes
1 answer
29 views

Can't pull a docker image on Cent OS server, but works fine on local Ubuntu OS

This command fails on a CentOS server but succeeds on an Ubuntu based laptop: # server, CentOS based $ docker pull jwilder/nginx-proxy:latest Error response from daemon: manifest for jwilder/nginx-...
-1 votes
0 answers
22 views

Synology onlyoffice docker error 502

On my synology NAS I have Nextcloud and I installed Onlyoffice docker. All was working but I change http to https for Nextcloud access and now Onlyoffice doesn't working (security). So I change my ...
0 votes
0 answers
18 views

Best way to trigger host to restart a docker container from inside another docker container?

I have a docker container that manages all of the SSL certificates for my services with Letsencrypt. When the certificate for a certain service is renewed, a post-hook script copies the certificate ...
1 vote
0 answers
18 views

Trouble to understand how networking works on nomad

Can someone explain why I can't access my website running in a docker container thru nomad or what I'm doing wrong ? I'm beginner in system and networking. I would like to make the container http ...
0 votes
0 answers
19 views

Why need to upgrade containerd.io from 1.2 to 1.4

I have upgraded containerd.io version from 1.2 to 1.4 in order to get a right result of 'ls -al' in rockylinux:8.7 container on Centos7 host. In the following environment, I coun't access files inside ...
0 votes
0 answers
9 views

(111: Connection refused) while connecting to upstream nginx with docker

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. I have looked everywhere and haven't found a solution. Dockerfile FROM node:14-alpine AS builder ...
2 votes
1 answer
61 views

Ngnix Reverse Proxy Setup SSL For Localhost In Docker

Using below docker compose.yml I am creating 2 containers and a reverse proxy container.. version: '3' services: # SSGTM Tag Server Container tagging_server_container: image: gcr.io/cloud-...
0 votes
0 answers
17 views

kubernetes: could not find PersistentVolume hostpath on windows

kubernetes: could not find PersistentVolume hostpath on windows 11. kubectl describe pv/pvc-4a7bc0ff-9195-4f2f-bd70-9dfd1f8cd065 Name: pvc-4a7bc0ff-9195-4f2f-bd70-9dfd1f8cd065 Labels: ...
0 votes
2 answers
26 views

Nginx strange upstream address after app restart

I have an application running in a container with an exposed port 8082. There is also an nginx configuration, part of which is shown below. In a normal situation, I see upstream: 127.0.0.1:8082 in the ...
-1 votes
0 answers
22 views

Need a tool that can save and run the docker images in non-internet machines [closed]

I am currently working on a project which needs to be deployed on customer infra (which is not cloud) and also it will not have internet. Please provide some options where we can save all the ...
1 vote
0 answers
18 views

View logs from short lived containers in docker stack

Similar to this question, but with the intricacies of the docker stack added. While debugging short lived containers on vanilla docker is "easy", you just do docker logs -f "...
0 votes
0 answers
37 views

docker registry behind nginx reverse proxy with authentication and ssl

I'm trying to push images remotely to my private docker registry, which fails like this: $ podman push sub.example.com:5000/dummyimg sub.example.com:5000/rem/dummyimg Getting image source signatures ...
0 votes
1 answer
36 views

dockerd does not start debian

Linux OS: debian11 Everything worked, but I think today after sudo apt upgrade I installed new version of docker. Then docker daemon does not start: $ sudo systemctl start docker Job for docker....
1 vote
1 answer
34 views

Two PHP sites under Docker + nginx cant communicate with each other

I am using Docker + NGINX to host two PHP sites. The sites are accessible from the outside but the problem arises when I try to access one site from another using cURL or file_get_contents. The ...
2 votes
2 answers
8k views

CORS blocked by No "Access-Control-Allow-Origin" on dockerized Angular frontend app and Spring Boot dockerized backend

I have built an Angular app and created a docker image, which makes it run on an Nginx server (once it is run). For the backend, I have a dockerized implementation as well. While trying to access the ...
-2 votes
0 answers
32 views

Why docker continuously writing to disk [closed]

I have a home server to mostly store and share personal pictures. It runs under Centos 9 stream and I use docker. The server is build with a SATA SSD for root, boot efi, ... partitions and 3 SATA HDD ...
1 vote
1 answer
6k views

Got django.db.utils.OperationalError: could not connect to server: Connection refused

I found a Django project and failed to get it running in Docker container in the following way: git clone git clone https://github.com/NAL-i5K/django-blast.git $ cat requirements.txt in this files ...
0 votes
1 answer
5k views

Nginx rewrite URI to remove a prefix?

I have a slim application that I would like to place under a directory path on a domain. Currently I have it working fine using the default slim file provided, but I would like to put a rewrite rule. ...
0 votes
0 answers
54 views

Docker compose gitea remote ssh connection refused

I have setup Gitea on an Ubuntu server using this docker-compose config: version: '3.9' services: db: image: docker.io/bitnami/postgresql:15 volumes: - 'db_data:/bitnami/postgresql' ...
2 votes
3 answers
7k views

Proxy Error 502 "Error reading from remote server" Apache 2.4.18 Ubuntu with HTTPS into Docker container

I'm no expert and can't see what's the problem, but obviously this error is caused by a tiny detail it seems I can't debug. Any idea? What I have: I have multiple virtual hosts configured with Apache2 ...
1 vote
2 answers
9k views

docker pull using proxy gives "first record does not look like a TLS handshake"

I have corporate server that must use proxy for outbound traffic. Following the Microsoft's docker documentation, I've run Powershell commands: [Environment]::SetEnvironmentVariable("HTTP_PROXY&...
2 votes
1 answer
5k views

php-fpm status page not found on docker

I Have two docker containers for php-fpm and nginx, i run it with docker-compose.yml file, but i try to setup the status page of my php-fpm and it not found. i acces to http://localhost/status url ...
1 vote
1 answer
7k views

How can VM and Docker bridge traffic be routed through a pfSense VM?

I think this question is a result of me not being able to wrap my head around Docker networking and not being super great at Slackware. It seems like there should be a simple solution; I'm just ...
0 votes
1 answer
115 views

Curl has incorrect DNS resolution in a dind context

I am running a docker:20.10.7-dind container. Into this one I am running a multi containers app. One container is a back container. Another one is a keycloak container. I connect on the back container ...
0 votes
1 answer
17 views

Change the script path in an Apache proxy handler

I'm developing my application with 2 containers: apache and php-fpm. Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost: <FilesMatch .php$> ...
7 votes
2 answers
5k views

Route Docker container traffic through another container

I'm trying to route tcp traffic of container B (10.10.1.2, custom binary using mysql and running on port 4242) through container A (10.10.1.3, haproxy, setup in transparent proxy mode) to the outside ...
0 votes
0 answers
49 views

Docker installed from snap fails to receive remote network traffic

I have an API hosted on a docker image which worked in the past, but which now is failing to work except on the host machine. I can successfully run queries using either localhost or the machine's ...
24 votes
4 answers
13k views

Docker breaks libvirt bridge network

This issue is driving me crazy. I run a fresh install of Ubuntu 18.04, with: ufw to manage the firewall a br0 bridge lxd and libvirt (KVM) I tried stock docker.io package and packages form docker's ...
0 votes
1 answer
1k views

How to fix "ERROR [internal] load metadata for docker.io" error while using Docker?

I am compiling sources of one cosmos-based blockchain projects on my MacOS. This project using Docker. I installed Docker and it seems running properly. But at the and of compiling I got this message ...
2 votes
2 answers
4k views

Docker settings in Ubuntu 20.04

Current setup I've installed the Docker (19.03.11) on Ubuntu (20.04) based on this article: https://docs.docker.com/engine/install/ubuntu/ What would be the goal I would like to change the data-...
0 votes
0 answers
10 views

Optimzing Docker Builds with docker-compose.yml when using PostGres DB's, performance, etc

I just have a general about how best to build and manage DB servers when using Docker builds with docker-compose.yml. Historically, I've sometimes bound the Postgres DB's to a bound folder on the ...
0 votes
1 answer
153 views

Installing docker/compose-bin plugin on Google's Container Optimized OS

I am trying install the docker/compose-bin plugin on a Google Cloud VM with Container Optimized OS (https://hub.docker.com/r/docker/compose-bin/tags). Has anybody achieved this? I understand docker is ...
0 votes
1 answer
32 views

Cannot execute nested command on remote host over ssh tunnel

Im running the following command in my GitLab CI job: ssh ${REMOTE_HOST} "docker restart $(docker ps --format '{{.Names}}' | grep '^backend')" The problem is that it returns me the ...
0 votes
0 answers
19 views

Mixed content error nginx+docker container

I have an EC2 with Nginx setup & there are a few containers running inside. There's a Node JS gateway which is serving some of the requests in a webpage hosting in this Nginx server. Nginx is not ...
0 votes
0 answers
85 views

Why does MySQL 5.7 inside a docker container always crash?

I have a MySQL 5.7 docker container that was provisioned via a docker-compose file, the file looks like this: version: '3' # Run command: docker compose --env-file .env.local up services: # ...
0 votes
0 answers
13 views

Apache Gateway to Dockerized FPM Container?

I have a dockerized app with a web fpm interface (monica:fpm-alpine), and a vps on the internet. I want my vps to be an https gateway to this app. I thought I could use a virtual host include file and ...
0 votes
0 answers
26 views

RabbitMQ connected dockerized Windows app stops consuming messages after some idle minutes

I have two Windows processes each in its own Docker container and they both publish and consume RabbitMQ messages. This is a proven app working on bare metal, but when dockerized it stops consuming ...
-1 votes
0 answers
21 views

Moving databeses and applications to containers

I have production server let's call it SERVER1. Structure looks like this. SERVER1 -- bare metal Debian11 Apache2 with proxy_https Database server mariadb Databases:app1,app2,app3, app4 Directory &...
22 votes
5 answers
24k views

Systemd fails to run in a docker container when using cgroupv2 (--cgroupns=private)

I will attach the minimized test case below. However, it is a simple Dockerfile that has these lines: VOLUME ["/sys/fs/cgroup"] CMD ["/lib/systemd/systemd"] It is Debian:buster-...
0 votes
0 answers
746 views

Configure docker network in Azure VM to be accessible from other VMs

I have a problem solving some connectivity issues in my Azure Setup. Lets start with my use-case: "I want to be able to have two VMs in Azure in the same Subnet (10.240.0.0/16) with e.g. IPs 10.240.0....
0 votes
0 answers
8 views

How to read the central Puppet Configurations in the Dockerfile

Currently, I am working on a project we are trying to containerize our application. As our current VMs build scripts are pulling the environment and application-related parameters via puppet file ...
2 votes
1 answer
7k views

Can't remove /var/lib/docker due to "Device or resource busy"

I've tried to uninstall docker and failed because I am not able to remove this dir /var/lib/docker and it gives me this error: (base) [xxx@xxx ~]$ sudo rm -rf /var/lib/docker/ rm: cannot remove ‘/var/...
0 votes
1 answer
44 views

Map subdomain to local IP through public IP

I want to map subdomain to local IPs on my machine to achieve a IP for each of my virtual machines. I know I can setup a DNS on my own machine but that will only resolve the domain on my own machine. ...
0 votes
0 answers
84 views

Auto renew LetsEncrypt cert with nginx under Docker

I'm having troubles setting up a auto renew for LetsEncrypt certificates. I run nginx under Docker container that serves Django application. Here is my docker-compose file: version: '3.8' services: ...
0 votes
1 answer
58 views

Why does curl inside Docker to a subdomain in the same Host use private IP address?

Consider I have docker-subdomain.mydomain.com pointing to a website in a Docker container, and host-subdomain.mydomain.com pointing to a website in the Host itself. Both these websites are in the same ...
14 votes
3 answers
29k views

Uninstall Docker when installed via curl

I have installed docker un my debian 7 server using the following command : sudo curl -sSL https://get.docker.com/ | sh I would now like to remove docker, how on earth do I uninstall it ?
0 votes
0 answers
19 views

Iptable traversal with docker chains

Using this as a reference and this previous post, I attempted at creating a iptable packet processing flowchart when docker containers on the bridge network are considered. The flowchart is shown ...

1
2 3 4 5
83