New answers tagged

0 votes

How to create .env multiline variable

You can do something like this: MY_ENV_VAR=$(cat <<EOF line 1 line 2 line 3 EOF ) Be aware that "EOF" needs to be in its own line, nothing after or before, so you need to close the ...
Xiromoreira's user avatar
1 vote

Grafana Agent in Docker runs perfectly for over a week and then suddenly stops working. When we check, the Data folder is gone

The issue you're facing with the Grafana Agent container losing access to its data directory and configuration file is likely related to a Docker volume management issue. Volume Prune: Docker has a ...
Mohammed Ehab's user avatar
1 vote
Accepted

Is it possible to run Docker on a hypervisor type 1?

Containers are a lightweight process isolation technology, like a chroot or jail. Not a new idea, but popular these days. The point initially was to not need (physical or virtual) hardware and the ...
John Mahowald's user avatar
3 votes

Is it possible to run Docker on a hypervisor type 1?

No, this is not possible. Hyper-V does not have a Linux Kernel, it's Windows. To run Docker on Windows you need to run it in a VM. While ESX was Linux based, ESXi is not, therefore I doubt running ...
Gerald Schneider's user avatar
2 votes
Accepted

Invalid response from .well-known/acme-challenge/<token> : 404 + nginx

Certbot uses the URL http://example.com/.well-known/acme-challenge/... to find its challenge/response file. Nginx uses the root directive to convert the URL into a file name by concatenating the root ...
Richard Smith's user avatar
0 votes

Docker repository does not have a release file for apt-get update on debian bullseye

A simple way to install docker in Linux using the repository: # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings ...
Ashraf Sarhan's user avatar
0 votes

How can I get docker build to overwrite a file?

Unrelated to your case but adding since this is the first google hit for the question. in my case I was trying: COPY resolv.conf /etc/resolv.conf but was failing since apparently Docker itself will ...
Geordie's user avatar
  • 135
2 votes
Accepted

403 from Google certificate endpoint when using IPv4

Hetzner resolved the issue. It turned out that the IP of the server was falsify flagged as Iranian. (The server itself was located in Germany) Iran is currently under sanctions and blocked by Google. ...
Nikolai Jay Summers's user avatar
1 vote

How can I use environment variables in Nginx.conf

I think everything is simpler here. First of all, envsubst is better than lua block. envsubst creates configuration files before nginx starts and then all variables are static. When using a lua block, ...
AlexeyP0708's user avatar
0 votes

Local Server connection to internal Mail-Server and SSL

To be able to send mail you first need to make sure if you connect to the internal mail server on the smtp ports. Then you have either two choices: You could setup a mail server in a docker container ...
Guido's user avatar
  • 61
1 vote

Route outgoing connections from a docker container through a specific IP

Desired State Multiple docker containers, each one uses specefic host IP from our single network interface which: receives its traffic only on its host IP sends traffic to the internet on behalf of ...
armanexplorer's user avatar
1 vote

Netplan configuration for bridge and route setup

I believe the answer to your question can be found here: https://bugs.launchpad.net/netplan/+bug/1664847/comments/19 ...only he called his interface macvlan0 where yours is loop-to-lan.
Rayn0r42's user avatar
0 votes

Why can I connect to the docker daemon with sudo, but not root?

sudo resets environment. su does not. Your user has evidently set the DOCKER_HOST variable to unix:///run/user/1000/docker.sock or has it in Docker configuration file. grepfor docker.sock may be a ...
vidarlo's user avatar
  • 9,092
0 votes

How to Configure vcluster to Use Internal Docker Registry Certificates?

You might want to try using TkgServiceConfiguration to configure vcluster to use your internal Docker registry certificates. This approach leverages a TkgServiceConfiguration resource within the ...
iamwillbin's user avatar
2 votes
Accepted

Make Docker Compose available to non-root user?

As described in https://docs.docker.com/engine/security/rootless/ For each user that will be using rootless docker you need to run a individual setup script dockerd-rootless-setuptool.sh install to ...
HBruijn's user avatar
  • 80.2k
0 votes

GitHub action runner with containerd - /var/run/docker.sock not found error

Indeed, when containerd was installed and upgraded the docker systemd service was disabled. Simply doing sudo systemctl enable --now docker fixed the issue.
Justin's user avatar
  • 5,438
2 votes
Accepted

Docker image expands vastly on extraction during pull, unable to pull docker image

The root cause of the problem in my case was that the Docker daemon on affected systems stopped working with overlay2 storage driver and started working with VFS storage driver. This can be identified ...
Sobek Sage's user avatar
1 vote
Accepted

Why Docker doesn't throw error if I delete my SQLite database using bind volume mount?

The quote from unlink(2) man page unlink() deletes a name from the filesystem. If that name was the last link to a file and no processes have the file open, the file is deleted and the space it was ...
AlexD's user avatar
  • 10.1k
1 vote

Why Docker doesn't throw error if I delete my SQLite database using bind volume mount?

As Alex said in the comments, it doesn't delete the file. It just deletes the reference to it. Like Pointers in C. So the file is still alive & all database operations are still working. Once the ...
deadcoder0904's user avatar
0 votes

Nginx automatically redirect to add a trailing slash

I found the solution myself: Apparently nginx automatically adds a trailing slash to the uri, and does this using an absolute redirect (HTTP 301). This causes the default protocol port to be applied, ...
Jonas Stasseyns's user avatar
0 votes

Nginx container running inside docker on custom network allow / deny not working

Most issues are known to the fact, that nginx reads the configuration from top to down The IP restriction In your example allow MY_IP; deny all; Looks ok, because Nginx Manual says The ...
djdomi's user avatar
  • 1,957
-1 votes

Jenkins / Docker scanning for docker port on multiple IP's

it's possible that the scanning activity could be related to Docker, especially considering that Docker by default uses port 2375 for external access, and you've recently installed Docker on your ...
AZAZEL's user avatar
  • 9
1 vote
Accepted

Can a Docker container run as a Jenkins build node with both Java 11 and Java 8?

Sure. You can install java 11 in one location, and use java 8 as default. Something in the line (pseudo file): # Dockerfile FROM: … COPY java11.tar /opt RUN yum/apt install java8 # make sure java8 in ...
kofemann's user avatar
  • 4,866
1 vote
Accepted

Dockerized http services are not accessible from nordvpn meshnet

TL;WR - Enable the local network access permission in Meshnet on the Docker machine for peers who should be able to access the containers. nordvpn meshnet peer local allow [command options] <...
Adam Frydrych - Meshnet's user avatar
0 votes

Apache Guacamole + Portainer + Nginx Proxy Manager + Cloudflare

Your docker-compose for the nginx proxy manager could look like this services: mariadb: image: jc21/mariadb-aria:latest container_name: npm_db environment: MYSQL_ROOT_PASSWORD: 'npm' MYSQL_DATABASE: '...
Turdie's user avatar
  • 2,544
1 vote

Why does docker-compose issue a "No such file or directory" when the file is there?

Ran into this same error, but in my case it could not find the Dockerfile. And it turns out that the file path I had specified was not valid from the context path I had provided. For example, I had: /...
joliver's user avatar
  • 11
0 votes

Is it possible to serve static html from php-fpm?

I was doing this question myself during this few weeks. My solution was this docker documentation in docs.docker.com which says: If you mount an empty volume into a directory in the container in ...
Sotmir Laci's user avatar
1 vote
Accepted

Kubernetes namespaces vs Docker namespaces

No, Kubernetes namespaces don't rely on Linux namespaces, they are internal to Kubernetes itself. Linux namespaces are used to isolate each pod. All containers in the pod share the same network, ipc ...
AlexD's user avatar
  • 10.1k
0 votes

in wireguard there is no access to some dns

I have tried to use different DNS, either 1.1.1.1, 8.8.8.8 or even leave the value in auto, and I still cannot resolve some websites through the VPN. I’m going to leave one of the websites that don’t ...
Miguel Duque's user avatar
0 votes

Can't get nginx resolver to work

I would use this one https://github.com/nginx-proxy/nginx-proxy/tree/main/docs version: '2' services: nginx-proxy: image: nginxproxy/nginx-proxy ports: - "80:80" volumes:...
Turdie's user avatar
  • 2,544

Top 50 recent answers are included