Answer the question
In order to leave comments, you need to log in
How to apply configuration in docker container thiagosagara/tacgui?
Good day to ALL!
In general, I want to deploy the tacacsgui service in a container.
1) I found an image of some Portuguese tacacsgui on Docker hub https://hub.docker.com/r/thiagosagara/tacgui ,
2) I ran 3 commands
sudo docker pull thiagosagara/tacgui
sudo docker run -it --name tcg -d thiagosagara/tacgui
sudo docker exec -t tcg /root/tgui_install/./startser.sh
Answer the question
In order to leave comments, you need to log in
Hey! Already kind of answered in the cart, but nevertheless, someone else may need it.
tacgui uses systemd - and in the image you are using systemd is not running and all parsing does not work:
main.sh
service tac_plus $2 | grep 'Active:';
If you use service without systemd - then the answer is NULL, which generates a bunch of errors in the code.
If you use it with systemd - there will be an answer - that it will already be correctly parsed by the php code and will display the appropriate save / apply authorization
Active: active (running) since Sat 2021-03-20 10:26:13 MSK; 6min ago
docker run -d -p 4443:4443 --name tcgXom --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro xom4ek/tacgui
Most likely, certain writable folders/files were created under sudo and no longer have write access to them. You can configure docker so that it does not need sudo to work (there are instructions on the network), then change the owner of the folders / files to the user under which the docker is running.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question