New answers tagged docker
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 ...
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 ...
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 ...
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;...
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 ...
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....
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-...
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=...
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 ...
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
...
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 ...
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;
...
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 ...
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, ...
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 <...
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 ...
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
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
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-...
1
vote
What are the iptables command to enable docker network
When you restart the docker service it automatically recreates the proper iptables rules
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 ...
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 ...
0
votes
Creating a working kubernetes environment using Docker
If you want Kubernetes in Docker, that's what KinD is for.
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 ...
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 ...
Top 50 recent answers are included
Related Tags
docker × 4215nginx × 567
docker-compose × 496
linux × 353
networking × 298
kubernetes × 269
ubuntu × 242
containers × 214
iptables × 211
amazon-web-services × 176
docker-swarm × 151
reverse-proxy × 137
debian × 100
centos × 84
mysql × 83
ssl × 78
php-fpm × 76
linux-networking × 75
ssh × 69
proxy × 66
gitlab × 66
domain-name-system × 65
php × 65
docker-networking × 65
amazon-ecs × 63