You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Readme makes a great work explaining how it works, but I still find some troubles understanding how this should be used. I found this on pypi https://pypi.org/project/docker-systemctl-replacement/ so I would assume I could put inside a dockerfile:
FROM rockylinux
# ...RUN dnf install -y python39
RUN python3 -m pip install docker-systemctl-replacement
# ...
However it doesn't work, I am almost sure it is not supposed to run that way since I could not find mention on pip in any place on the Readme.
The pip-module installs "systemctl.py" and "systemctl3.py". In order to override "systemctl" command you would need to make the copy/symlink being an additional step in the dockerfile.
After all, you are correct - copy/download the one file and push it in place.
The Readme makes a great work explaining how it works, but I still find some troubles understanding how this should be used. I found this on pypi https://pypi.org/project/docker-systemctl-replacement/ so I would assume I could put inside a dockerfile:
However it doesn't work, I am almost sure it is not supposed to run that way since I could not find mention on pip in any place on the Readme.
I have also thought I could just:
However I am not sure if I should only do that of if I should also do something else. I am new to docker.
The text was updated successfully, but these errors were encountered: