-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
How do you use this to run docker commands? #735
Comments
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. |
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! |
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 |
I just used the python3 that was included ayway, for anyone in the future
|
Thanks a lot @mmkk20158 ! |
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.
|
What about mount docker and its sock? In this case it is possible to use services:
script-server:
image: bugy/script-server:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker # ${which docker}:/usr/bin/docker
- ./script-server/conf.json:/app/conf/conf.json
- ./script-server/runners:/app/conf/runners
- ./script-server/scripts:/app/scripts
ports:
- 5000:5000
- 5443:5443 But this one might give too much access leading to security issues? |
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
The text was updated successfully, but these errors were encountered: