Skip to content

Conversation

@aevesdocker
Copy link
Contributor

@aevesdocker aevesdocker commented Nov 4, 2024

Description

Add lifecycle attributes to the compose spec

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

@github-actions github-actions bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Nov 4, 2024
@netlify
Copy link

netlify bot commented Nov 4, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 7007a76
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/6729e005cf20ff000831c801
😎 Deploy Preview https://deploy-preview-21326--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aevesdocker aevesdocker requested a review from a team November 4, 2024 11:07

`post_start` defines a sequence of lifecycle hooks to run after a container has started. The exact timing of when the command is run is not guaranteed.

- `command`: The command to run after the container has started. This attribute is required.
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably worth mentioning that this works the same way as CMD and the default command (E.g., you can use both the shell form and exec form. In the case of exec form, no shell is invoked.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added!

```

## post_start

Copy link
Contributor

Choose a reason for hiding this comment

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

Add version it was introduced in

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, added

@aevesdocker aevesdocker requested a review from dvdksn November 5, 2024 09:09
@aevesdocker aevesdocker merged commit 66d0b99 into docker:main Nov 5, 2024
14 checks passed
dvdksn pushed a commit to dvdksn/docs that referenced this pull request Nov 7, 2024
<!--Delete sections as needed -->

## Description

Add lifecycle attributes to the compose spec

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [x] Editorial review
- [ ] Product review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compose Relates to docker-compose.yml spec or docker-compose binary status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants