New answers tagged

0 votes

How to add a default env var to all docker containers

To the best of my knowledge there is no native facility for injecting a set of default environment variables into all Docker containers; see Moby issue #16699 for some thoughts on exactly this ...
larsks's user avatar
  • 44.1k
0 votes

How do I login to private Docker Registry with a self signed cert using WSL2 on Windows?

In my case I needed to have my certificate file under "Trusted Root Certification". I had it under personal since it was managed by myself. Is there a way to still have it work while not ...
Jackie's user avatar
  • 171
0 votes

Curl has incorrect DNS resolution in a dind context

Another way to get this to work is to append docker-compose network name as the last TLD on top of the configured network name e.g. keycloak.localhost fails but keycloak.localhost.myfolder_default ...
user10607's user avatar
0 votes

How to serve static files for Docker Nextcloud-fpm behing nginx reverse proxy?

These directives in the config should do the trick root /path/to/static; index index.html; So in your case /etc/nginx/conf.d/nextcloud.conf map $http_upgrade $connection_upgrade { default upgrade;...
Turdie's user avatar
  • 1,433
0 votes

Best practices for deploying ASP.NET Core components across multiple VMs

First of all, stay away from docker windows containers, they are a pain in the ass. You are saying you need to deploy ASP.net components on a couple of VM in the private network and in the cloud. I ...
Turdie's user avatar
  • 1,433
0 votes
Accepted

What's wrong in this nginx (dockerized) configuration in order to reverse-proxy to my local apps?

The difference is in the network. From the command line, the container, as stated in the docker domentation By default, containers inherit the DNS settings of the host, as defined in the /etc/resolv....
J.M. Robles's user avatar
  • 1,070
0 votes

How can I further troubleshoot a "502 Bad Gateway" error?

In my case it was a firewall issue. I disabled the firewall and it worked. I got a clue by curling the docker IP, which properly output the html homepage. sudo ip addr show docker0 4: docker0: <NO-...
MaximilianKohler's user avatar
1 vote
Accepted

Access host's wireguard from Docker containers

you can create a custom bridge network in Docker and then connect your containers to this network. 1. docker network create --driver=bridge --subnet=192.168.60.0/24 mynetwork docker run --network=...
Turdie's user avatar
  • 1,433
0 votes

docker throws 'cannot mount volume over existing file' when running an exported image

The error is because of: - ./100_populate_source_source_daimon.sql:/docker-entrypoint-initdb.d/100_populate_source_source_daimon.sql:ro If 100_populate_source_source_daimon.sql doesn't exist, docker ...
BMitch's user avatar
  • 6,159
0 votes

How use profiles with swarm?

It seems profiles are not supported yet in docker swarm. Using the docker stack config command on a docker-compose.yml file with profiles returns an error: $ docker stack config -c docker-compose.yml ...
eradan's user avatar
  • 1
1 vote
Accepted

IPv6 - Docker Userland Proxy and identifying client source

Those IPv6 CIDR nets need to contain your prefix, out of address space routed to your container host. Routed is important, so routers will be sending the whole range to the container host. Just like ...
John Mahowald's user avatar
1 vote

only allow traffic from one FQDN

I finally got it working. I had to add the IP of my HAProxy as an allowed IP, I also consolidated the nginx config. server { listen 80; charset utf-8; server_name test.mydomain.com; ...
user2236794's user avatar
0 votes

Launching docker with parameters equivalent to compose file

It seems that the official image for koenkk/zigbee2mqtt has been removed from docker hub. However, in the github repository for the application you can find a Dockerfile. You can try copying that ...
J.M. Robles's user avatar
  • 1,070
1 vote
Accepted

Implement subdomain with port 8080

If you want your users to type be.example.com and get your application you need to use the default ports, 80 for HTTP and 443 for HTTPS. With every other port your users need to type the port as well, ...
Gerald Schneider's user avatar
0 votes

Implement subdomain with port 8080

Did you unbind the existing application port 80 from docker container. Run the following command to unbind the port 80. docker run -p <desired_host_port>:<container_port> -d --name <...
Shivam Ahuja's user avatar
0 votes

Letsencrypt is generating self signed certificate, not wanted

Your issue with Let's Encrypt generating a self-signed certificate instead of a valid certificate for your domain is likely related to the configuration of your Docker setup and Nginx, or the process ...
suchislife's user avatar
2 votes

chmod: changing permissions of 'myscript.sh' : Operation not permitted

You can use the following while copying: COPY --chmod=755 myScript.sh /detination/folder
borekon's user avatar
  • 131
0 votes
Accepted

Cannot access keycloak UI using other hostname besides localhost on port: 8089, using other ports is Ok

The issue was that port 8089 was being used by a source control (plastic SCM), and docker was not showing any warning about that
Game dev's user avatar
  • 101
2 votes

Check is container/service running with docker-compose

You could use filters, for example: docker ps \ --filter label=com.docker.compose.project.working_dir=/my_projects/project1 --filter label=com.docker.compose.project.config_files=docker-...
runout's user avatar
  • 21
1 vote

What are the iptables command to enable docker network

When you restart the docker service it automatically recreates the proper iptables rules
Turdie's user avatar
  • 1,433
0 votes

poor docker / nginx throughput when running with bridge network on ubuntu

Do you need PHP - and PHP-FPM? Your question speaks about profiling using a static HTML file. The response will clearly be different for static vs dynamic PHP. If you are only interested in static ...
TuneLinux's user avatar
0 votes

NGINX reverse proxy not working as expected

I've used a similar configuration but with a specifically configured isolated bridge network; AND nginx as a docker container. Then you don't need https in an isolated bridge network - as it's all ...
TuneLinux's user avatar
0 votes

Creating a working kubernetes environment using Docker

If you want Kubernetes in Docker, that's what KinD is for.
Alexander Stumpf's user avatar
0 votes

Ubuntu 22.04 Error from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: connection refused

Solved by adding these two lines in /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4 And then: root@k8s-eu-1-master:~# sudo systemctl daemon-reload root@k8s-eu-1-master:~# sudo ...
Raphael10's user avatar
  • 155
0 votes

Strongswan on host, docker container unable to pass through

That NAT rule is incorrect as that is basically what Docker already does anyway (NAT private Docker networks to the IP of the host). Since the local traffic selector (leftsubnet) for the VPN is the ...
ecdsa's user avatar
  • 4,003

Top 50 recent answers are included