nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

Support Compose Run

Open metaskills opened this issue 3 years ago • 4 comments

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?

metaskills avatar Jun 25 '21 16:06 metaskills

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

https://3musketeers.io/

starkmatt avatar Nov 17 '21 23:11 starkmatt

Contribution wanted.

A workaround is to use nerdctl exec -it PROJECT_SERVICE_N

AkihiroSuda avatar Nov 22 '21 10:11 AkihiroSuda

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

tragiclifestories avatar Dec 29 '21 17:12 tragiclifestories

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.

ivellios avatar Jan 19 '22 09:01 ivellios