Skip to content
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

Slice of a second start-time #76

Open
xeor opened this issue Dec 20, 2018 · 0 comments
Open

Slice of a second start-time #76

xeor opened this issue Dec 20, 2018 · 0 comments

Comments

@xeor
Copy link

xeor commented Dec 20, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant