insanitybit / cargo-sandbox

MIT License
112 stars 2 forks source link

Reconsider the 'sleep infinity' hack #23

Closed insanitybit closed 1 year ago

insanitybit commented 1 year ago

Currently every container is created with sleep infinity as its command. Subsequent work is then done through docker exec API calls.

It's worth considering other design options.

insanitybit commented 1 year ago

I've changed this so that instead of persistent containers cargo-sandbox will create, execute, and then remove the container (ephemeral containers). State is then managed via mounts.