Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Conversation

@ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Jun 21, 2021

Compose run is used to execute a "one off" container, restart_policy doesn't make sense in this context (should only apply to long running services)
This also fix incompatibility with auto-remove HostConfig option

Also fix earlier one-off containers being started by compose up

Related issue
close #1694

(not mandatory) A picture of a cute animal, if possible in relation with what you did
image

@ndeloof ndeloof requested a review from lorenrh June 21, 2021 06:29
Copy link
Contributor

@lorenrh lorenrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@ndeloof ndeloof merged commit 6bfdfa8 into docker-archive:main Jun 21, 2021
@ndeloof ndeloof deleted the autoremove_restart_policy branch June 21, 2021 10:01
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.

docker compose error with "cannot create AutoRemove container with restart policy"

2 participants