-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Autostart script/app on container startup #191
Comments
Hi fcwu sorry for late testing but couldn't get it sooner. I've tried to user the OPENBOX_ARGS but no getting to work. I'm actually using docker-compose and added this as an ENV, edited the /etc/xdg/openbox/autostart file to call my sh script which calls a python one but i think i'm lacking something. this is how my compose line lookslike
and this is the line i added to autostart file /bin/bash/start.sh Also tried to add directly in the compose file this way
|
@moltrabella Are you solve? |
yes i am, after playing a while the env i get it working like a charm |
@moltrabella Can you show your code and provide step? |
Sure, this is my docker-compose file version: '3' test: networks: as you can se i have a volume mounted in the container where i call my script. The trick was the "- OPENBOX_ARGS=--startup" env. Just runnning a default cointainer with that should call anything on startup |
Hi there, is there any way to get a script running un container startup? i've been trying modifiyng the entrypoint or the cmd but cannot get it working. I also tried with desktop files.
My main idea es to launch a bash to call a python script for opening a browser and login automatically. I have a volume mounted with the .sh but cannot get it start. Sorry for bad english.
The text was updated successfully, but these errors were encountered: