b0mb Posted September 13, 2020 Share Posted September 13, 2020 Hi! I need to execute a few commands while starting a container. apk add py3-chardet && \ apk add py3-pip && \ pip uninstall -y apprise && \ pip install apprise does any1 know what i have to do? thx in advance! b0mb Quote Link to comment
Squid Posted September 13, 2020 Share Posted September 13, 2020 Start it via a user script docker start nameOfContainer docker exec nameOfContainer /config/nameOfScript and then the script you need to run goes into it's appdata (/config) folder Quote Link to comment
b0mb Posted September 13, 2020 Author Share Posted September 13, 2020 the problem is that most of my docker containers are set to auto update and so the best solution would be that such a script would run after restarting the container Quote Link to comment
Squid Posted September 13, 2020 Share Posted September 13, 2020 Then in the Post Arguments when editing the template (advanced view), add in && docker exec nameOfContainer /config/nameOfScript 1 Quote Link to comment
b0mb Posted September 13, 2020 Author Share Posted September 13, 2020 thx! i´ve had to put sh infront of /config but it works Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.