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

Support Compose Run #270

Closed
metaskills opened this issue Jun 25, 2021 · 4 comments · Fixed by #1340
Closed

Support Compose Run #270

metaskills opened this issue Jun 25, 2021 · 4 comments · Fixed by #1340
Labels
area/compose enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@metaskills
Copy link

First, this project is amazing!!!

Feature request. A lot of our Docker projects at Custom Ink leverage docker-compose run in various project bin files for local development. This allows us to use the compose file as a way to define a single place for environments, volumes, etc. Is nerdctl compose run anywhere in the future?

@AkihiroSuda AkihiroSuda added area/compose enhancement New feature or request good first issue Good for newcomers labels Jun 25, 2021
@AkihiroSuda AkihiroSuda removed the good first issue Good for newcomers label Jul 7, 2021
@starkmatt
Copy link

Agreed, this will be fantastic if this was added as a feature for Devs who are using the 3Mustketeers pattern

https://3musketeers.io/

@AkihiroSuda
Copy link
Member

Contribution wanted.

A workaround is to use nerdctl exec -it PROJECT_SERVICE_N

@tragiclifestories
Copy link

Would also love nerctl compose exec which I guess would be closely related?

@ivellios
Copy link

ivellios commented Jan 19, 2022

I was looking for run with compose and found this issue.

run spawns a separate container which may be useful when the container won't run before some pre-setup steps are taken explicitly by running some command (like bootstrapping with volumes attached). I know the images should be always run-ready, but there are some corner cases, where run is required and without compose context it will simply not work. exec would work only for properly running containers, which may not be the case without bootstrap first. This is edge case, so may not be worth pursuing tho.

@AkihiroSuda AkihiroSuda pinned this issue Jan 19, 2022
@AkihiroSuda AkihiroSuda added the help wanted Extra attention is needed label Jan 19, 2022
@AkihiroSuda AkihiroSuda unpinned this issue Jul 3, 2022
@AkihiroSuda AkihiroSuda pinned this issue Jul 7, 2022
@AkihiroSuda AkihiroSuda added this to the v0.23.0 milestone Aug 31, 2022
@AkihiroSuda AkihiroSuda unpinned this issue Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compose enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants