I have a EC2 machine Ubuntu 20 installed with nginx as well, docker installed, running some applications in there behind a reverse proxy. Problem is when I run sudo docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
I get error: docker: Error response from daemon: driver failed programming external connectivity on endpoint rancher-server (7d5a00a9ab00851a7f6417f601e01a80d31668b10e564aeb88896fa2f10cb850): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use.
Just to make sure, I am using letsencrypt certificates.
What should I do in such case?
docker run -d --restart=unless-stopped -p 8080:80 -p 8443:443 --privileged --name=rancher-server rancher/rancher --acme-domain mydomain.com
this is what I tried but didnt manage to get it working yet…when I checked rancher container logs, its not running properly, there is repeating sth like this over and over:
I0418 18:29:25.623442 26 image_gc_manager.go:322] attempting to delete unused images
I0418 18:29:25.642279 26 eviction_manager.go:355] eviction manager: must evict pod(s) to reclaim ephemeral-storage
E0418 18:29:25.642371 26 eviction_manager.go:366] eviction manager: eviction thresholds have been met, but no pods are active to evict
W0418 18:29:35.652811 26 eviction_manager.go:344] eviction manager: attempting to reclaim ephemeral-storage
I0418 18:29:35.652864 26 container_gc.go:85] attempting to delete unused containers
I0418 18:29:35.654646 26 image_gc_manager.go:322] attempting to delete unused images
I0418 18:29:35.667435 26 eviction_manager.go:355] eviction manager: must evict pod(s) to reclaim ephemeral-storage
E0418 18:29:35.667495 26 eviction_manager.go:366] eviction manager: eviction thresholds have been met, but no pods are active to evict
W0418 18:29:45.682430 26 eviction_manager.go:344] eviction manager: attempting to reclaim ephemeral-storage
I0418 18:29:45.682481 26 container_gc.go:85] attempting to delete unused containers
I0418 18:29:45.684545 26 image_gc_manager.go:322] attempting to delete unused images
I0418 18:29:45.696583 26 eviction_manager.go:355] eviction manager: must evict pod(s) to reclaim ephemeral-storage
E0418 18:29:45.696619 26 eviction_manager.go:366] eviction manager: eviction thresholds have been met, but no pods are active to evict