Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Comments

Improvements(?) to "atomic run"#429

Closed
mvollmer wants to merge 7 commits intoprojectatomic:masterfrom
mvollmer:run-unique
Closed

Improvements(?) to "atomic run"#429
mvollmer wants to merge 7 commits intoprojectatomic:masterfrom
mvollmer:run-unique

Conversation

@mvollmer
Copy link
Contributor

This makes "atomic run" behave more like "docker run" in that it doesn't reuse an existing container by default.

This is motivated by https://bugzilla.redhat.com/show_bug.cgi?id=1299813

It also addresses some potential inconsistencies:

  • atomic run --spc would pass --rm, while the rest would not
  • atomic run --spc would not pass --name, while the rest would
  • atomic run with a RUN label might not run docker-latest

If one wants to use "atomic run" reliably without this, one can explicitly pass a unique "--name" option and delete the container explicitly afterwards. However, I think it would be nice if atomic run itself would offer a easy way to do the right thing, even if only optionally via explicit "--unique" and "--rm" options, say.

mvollmer added 7 commits June 21, 2016 16:04
For consistency.  We don't pass "--rm" in any of the other cases.
For consistency and because we already pass "-e NAME=NAME".
For improved maintainability.
And add the "--remain" option to override that.
Because reusing an already existing or running container is confusing.
It is not what "docker run" does and unreliable in general.

See https://bugzilla.redhat.com/show_bug.cgi?id=1299813.
@rhatdan
Copy link
Member

rhatdan commented Jun 21, 2016

The problem with this would be break the atomic run rhel-tools container/pet containers use case, correct?

@rhatdan
Copy link
Member

rhatdan commented Jun 21, 2016

Here was the initial design document for the atomic run/install/uninstall command. I don't believe we can change the default behaviour. But I agree for people understanding the docker run behaviour it is strange.

https://docs.google.com/document/d/14U03ggEjerBhG-PAdWhxJsnpLu04rVVzoHbXppjsHhk/edit

@mvollmer
Copy link
Contributor Author

The problem with this would be break the atomic run rhel-tools container/pet containers use case, correct?

I guess the pet container use case covers stuff like installing a new package into the container with yum and having it available from then on, right?

This would be broken by "Use unique conainer names by default", yes.

@mvollmer
Copy link
Contributor Author

mvollmer commented Jun 22, 2016

Here was the initial design document for the atomic run/install/uninstall command.

Thanks. How do you create an "interactive image"?

@mvollmer
Copy link
Contributor Author

Let's close this. I'll try to come up with something that preserves the pet container use case.

@mvollmer mvollmer closed this Jun 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants