I recently got a Raspberry Pi 5 starter kit and was trying to follow along with this YouTube video for setting up a cyber security home lab. Setup was going well except for now I’m getting an error in my Docker Container for Nginx. To pull Nginx I ran docker pull nginx:mainline-alpine
so I would be able to run “apk” commands versus just running docker pull nginx
I’m trying to reload nginx but keep getting the error that the nginx.pid does’t exist
679ee6c7ab74:/# nginx -s reload
2024/05/02 04:56:41 [notice] 69#69: signal process started
2024/05/02 04:56:41 [error] 69#69: open() "/var/run/nginx.pid" failed (2: No such file or directory)
nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)
I ran a cd command to the file path directory and ran an ls command to confirm the file wasn’t there.
This is the video I’m trying to follow: https://www.youtube.com/watch?v=MshVeYlpE90&t=2316s
The 38 minute mark is approximately where I was at when I got the error if it helps to check out the video
I did some googling to see if anyone else was having the issue. Some suggested that instead of “/var/run/nginx.pid” that the path might actually just be “/run/nginx.pid”
I ran a “cd” command to change to the “run” directory where I ran an “ls” command and noticed that “nginx.pid” wasn’t in that directory either
Any ideas of what’s going on?
Stephen Clarke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.