Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Conversation

@ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Aug 24, 2021

What I did
Consider volume_from as an implicit definition for service dependencies

Related issue
close https://github.com/docker/compose-cli/issues/2035

@ndeloof ndeloof requested a review from ulyssessouza August 24, 2021 08:41
@ndeloof ndeloof requested a review from lorenrh August 24, 2021 12:51
Comment on lines 183 to 185
for _, s := range deps {
if _, ok := service.DependsOn[s.Name]; !ok {
service.DependsOn[s.Name] = types.ServiceDependency{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
for _, s := range deps {
if _, ok := service.DependsOn[s.Name]; !ok {
service.DependsOn[s.Name] = types.ServiceDependency{
for _, d := range deps {
if _, ok := service.DependsOn[d.Name]; !ok {
service.DependsOn[d.Name] = types.ServiceDependency{

Copy link
Contributor

@ulyssessouza ulyssessouza left a comment

Choose a reason for hiding this comment

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

LGTM

@ndeloof ndeloof merged commit a5e8ab2 into docker-archive:main Aug 25, 2021
@ndeloof ndeloof deleted the volume_from_deps branch August 25, 2021 09:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

volumes_from not resolving correct container name when using docker compose run

3 participants