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

map deploy.restart_policy.condition to engine values #9944

Merged
merged 1 commit into from Oct 25, 2022

Conversation

glours
Copy link
Contributor

@glours glours commented Oct 24, 2022

Signed-off-by: Guillaume Lours 705411+glours@users.noreply.github.com

What I did
Map the value of deploy.restat_policy.condition to values supported by the engine. Basically this map none to no and any to always

Related issue
fixes #8756
docker/docs#15936

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

@glours glours requested a review from a team October 24, 2022 09:12
@glours glours self-assigned this Oct 24, 2022
@glours glours requested review from nicksieger, ndeloof, StefanScherer, ulyssessouza, milas and laurazard and removed request for a team October 24, 2022 09:12
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours force-pushed the map-spec-restart-policy-to-engine branch from 95ab33e to eaf27d9 Compare October 24, 2022 09:39
@glours glours merged commit 5a1f645 into docker:v2 Oct 25, 2022
@i3130002
Copy link

Both restart: none and restart: none don't work.

  • The first one fails at docker compose up with Error response from daemon: invalid restart policy 'none'
  • The second one fails at docker compose build with services.xxxxxx.restart must be a string

I imagine something has gone wrong in this commit.

@glours
Copy link
Contributor Author

glours commented Nov 10, 2022

@i3130002 this commit has not been released, so if you want to test it you should build Compose by yourself for now

@glours glours deleted the map-spec-restart-policy-to-engine branch January 11, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error response from daemon: invalid restart policy 'any'
4 participants