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
I've made a couple of container cli tools.. And I always found that 1 second container-boot-time to be very annoying. I have "fixed" this on my own projects by having a way to start the container in idle-mode.. ie, something like:
if [[ "${1}" == "--idle" ]]; then
while true; do
sleep 3600
done
fi
then.. If the container is running, I can save that second by using docker exec instead of docker run.
Would that be something worth looking into for this project?
Some of the problems:
Can't mount current pwd
Normally, an ansible project is in the same directory, but if the ansible commands detect a changed pwd. They could recreate the container?
User looses control over what is running?
I ended up making the exec option into a helper, that can be controlled with mycommand-helper. Example mycommand-helper ps.. Also, to use this at all, you must first use mycommand-helper start..
Just throwing the idea out there :) Thanks for a great tool!
The text was updated successfully, but these errors were encountered:
I've made a couple of
container cli
tools.. And I always found that 1 second container-boot-time to be very annoying. I have "fixed" this on my own projects by having a way to start the container in idle-mode.. ie, something like:then.. If the container is running, I can save that second by using
docker exec
instead ofdocker run
.Would that be something worth looking into for this project?
Some of the problems:
Can't mount current
pwd
User looses control over what is running?
exec
option into ahelper
, that can be controlled withmycommand-helper
. Examplemycommand-helper ps
.. Also, to use this at all, you must first usemycommand-helper start
..Just throwing the idea out there :) Thanks for a great tool!
The text was updated successfully, but these errors were encountered: