Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error systemctl when run inside docker container #96

Open
meesudzu opened this issue May 8, 2023 · 4 comments
Open

Error systemctl when run inside docker container #96

meesudzu opened this issue May 8, 2023 · 4 comments

Comments

@meesudzu
Copy link

meesudzu commented May 8, 2023

  1. php artisan stethoscope:listen
    Screen Shot 2023-05-08 at 16 14 18

  2. php artisan stethoscope:monitor
    sh: 1: systemctl: not found

@MohsenAbrishami
Copy link
Owner

This package only supports Linux including Ubuntu, Debian, and Mint.
to check nginx and apache status is used from systemctl.
Systemctl is the default service management command on popular Linux distributions.
please say what is your name and version OS.

@meesudzu
Copy link
Author

@MohsenAbrishami Sorry for the late reply.
Im running inside a docker container with Ubuntu:22.04 as an image.
How can I install systemctl inside the docker container?

@MohsenAbrishami
Copy link
Owner

as far as I know, Docker containers do not include a full systemd setup because it goes against the design principles of Docker. Systemd is an init system responsible for managing processes and services on a Linux system, and running it inside a Docker container can lead to complications. I don't recommend trying to install Systemctl inside a docker container. Temporarily, you can disable web_server config and ignore this error.
I try to consider this issue and fix the problem in the next versions.
@meesudzu

@meesudzu
Copy link
Author

@MohsenAbrishami thank you for your work hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants