Replies: 1 comment
-
Disregard, I had the custom ports reversed. The "internal" port (the one after the colon) must always be 80. The external port can be anything you want from 1-65535. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found it-tools through a Google search on this site: https://www.smarthomebeginner.com/best-docker-containers-for-home-server/
I have a Raspberry Pi on which I ran the following command (from the readme):
docker run -d --name it-tools --restart unless-stopped -p 8080:80 corentinth/it-tools:latest
When navigating to the Pi by hitting http://raspberry Google Chrome simply returns connection refused. I tried https as well, but received the same message. I changed the ports to a custom port (e.g. 21505) -- this required me to docker stop it-tools, docker rm it-tools, and re-deploy such as:
docker run -d --name it-tools --restart unless-stopped -p 21505:21505 corentinth/it-tools:latest
Then navigating to http://raspberry:21505 or https://raspberry:21505 still yields connection refused.
I have Portainer installed, so I can access the container logs quite easily. You'll notice exit and gracefully shutting down messages; this is because I had Portainer running with log refresh enabled, and I ran docker stop and docker run commands, as I wanted to see if errors were thrown. The container shut down and restarted without any observable errors.
Why am I not able to connect to this container regardless of which ports I publish it on? My Raspberry Pi is up-to-date (I ran sudo apt-get update and sudo apt-get upgrade, and rebooted after updating). Below are the logs for it-tools from Portainer.
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/07/14 02:20:58 [notice] 1#1: using the "epoll" event method
2023/07/14 02:20:58 [notice] 1#1: nginx/1.24.0
2023/07/14 02:20:58 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)
2023/07/14 02:20:58 [notice] 1#1: OS: Linux 6.1.21-v8+
2023/07/14 02:20:58 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/07/14 02:20:58 [notice] 1#1: start worker processes
2023/07/14 02:20:58 [notice] 1#1: start worker process 29
2023/07/14 02:20:58 [notice] 1#1: start worker process 30
2023/07/14 02:20:58 [notice] 1#1: start worker process 31
2023/07/14 02:20:58 [notice] 1#1: start worker process 32
2023/07/14 02:27:20 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down
2023/07/14 02:27:20 [notice] 30#30: gracefully shutting down
2023/07/14 02:27:20 [notice] 29#29: gracefully shutting down
2023/07/14 02:27:20 [notice] 31#31: gracefully shutting down
2023/07/14 02:27:20 [notice] 30#30: exiting
2023/07/14 02:27:20 [notice] 29#29: exiting
2023/07/14 02:27:20 [notice] 31#31: exiting
2023/07/14 02:27:20 [notice] 29#29: exit
2023/07/14 02:27:20 [notice] 31#31: exit
2023/07/14 02:27:20 [notice] 30#30: exit
2023/07/14 02:27:20 [notice] 32#32: gracefully shutting down
2023/07/14 02:27:20 [notice] 32#32: exiting
2023/07/14 02:27:20 [notice] 32#32: exit
2023/07/14 02:27:20 [notice] 1#1: signal 17 (SIGCHLD) received from 30
2023/07/14 02:27:20 [notice] 1#1: worker process 29 exited with code 0
2023/07/14 02:27:20 [notice] 1#1: worker process 30 exited with code 0
2023/07/14 02:27:20 [notice] 1#1: worker process 31 exited with code 0
2023/07/14 02:27:20 [notice] 1#1: signal 17 (SIGCHLD) received from 32
2023/07/14 02:27:20 [notice] 1#1: worker process 32 exited with code 0
2023/07/14 02:27:20 [notice] 1#1: exit
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/07/14 02:27:21 [notice] 1#1: using the "epoll" event method
2023/07/14 02:27:21 [notice] 1#1: nginx/1.24.0
2023/07/14 02:27:21 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)
2023/07/14 02:27:21 [notice] 1#1: OS: Linux 6.1.21-v8+
2023/07/14 02:27:21 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/07/14 02:27:21 [notice] 1#1: start worker processes
2023/07/14 02:27:21 [notice] 1#1: start worker process 29
2023/07/14 02:27:21 [notice] 1#1: start worker process 30
2023/07/14 02:27:21 [notice] 1#1: start worker process 31
2023/07/14 02:27:21 [notice] 1#1: start worker process 32
Beta Was this translation helpful? Give feedback.
All reactions