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
So I installed this on my docker server and i'd like people to be able to restart a service on another docker. obviosly since this is inside a docker itself it doens't have access to the hosts info.
basically i'm hosting a palworld server and i want my users to be able be able to restart the docker container for updates / mods / etc
Yep, unfortunately Script server doesn't have any special features for docker
what's the recommended way to add curl to the container? i tried a volume binding but then all of the dependancis aren't there
You could use a staging script* once the container is up to install additional packages or customize your image with docker compose to add the packages you need.
#!/bin/bash
# placed at shared directory with the container
apt update
apt install package1 package2 package3
apt clean
Activity
bugy commentedon Feb 15, 2024
Hey, i guess this is not a question about script server, but rather docker and container management. Your goal is to write a script which will work inside a docker container. Script server will just give a web access to this script.
I think this guide might be helpful https://www.reddit.com/r/docker/comments/169hnti/quick_guide_how_to_control_a_docker_host_from/
mmkk20158 commentedon Feb 15, 2024
hey thanks! yeah i know i can use the api but was just curious if there was some other way without opening a port.
thanks again!
bugy commentedon Feb 16, 2024
Yep, unfortunately Script server doesn't have any special features for docker
mmkk20158 commentedon Feb 16, 2024
what's the recommended way to add curl to the container? i tried a volume binding but then all of the dependancis aren't there
mmkk20158 commentedon Feb 17, 2024
I just used the python3 that was included ayway, for anyone in the future
bugy commentedon Feb 20, 2024
Thanks a lot @mmkk20158 !
agail commentedon Apr 15, 2024
You could use a staging script* once the container is up to install additional packages or customize your image with docker compose to add the packages you need.
ClarkeAC commentedon Aug 15, 2024
What about mount docker and its sock? In this case it is possible to use
docker xxx
without having to install docker in docker.But this one might give too much access leading to security issues?