projectOptions
could be public so external code can use its toProject
method to create types.Project
#10102
Labels
Description
I am trying to build a simple code (https://go.dev/play/p/9fcBrgupBpW) in Golang to interact with Docker Compose.
The problem is - after creating a compose project based on the given
docker-compose.yml
file, no project is listed.What's expected is something like
Inspected the containers created by my code, I noticed that
com.docker.compose.project
is missing:Looking into
compose
code, it looks like the label is added as part oftoProject(...)
method of structprojectOptions
, which apparently is not public, so I will have to recreate the same logic in my code to get this to work. Basically I copied the same code from https://github.com/docker/compose/blob/v2/cmd/compose/compose.go#L190-L203It'd be nice to make
projectOptions
public so external code can use itstoProject
method to createtypes.Project
.The text was updated successfully, but these errors were encountered: