Follow the Local Environment Setup for the drupal-example project
I needed to alter the docker-compose.yml file to specify only the CLI service because of an error when referencing that service in the Dockerfile of the php and nginx services.
run docker-compose up -d
Test steps
Connect to the CLI container - docker-compose exec cli bash
Check that SSH agent is running in the CLI service and the host identities have been added.
Actual behaviour
The following is output to stdout
no such service: amazeeio-ssh-agent
Expected behaviour
The stack builds, ssh agent is running and the host identity is added in the CLI service.
Background
Docker Desktop (Mac) 4.1.1 sets Docker Compose version 2 as the system default for Compose.
This is incompatible with the volumes_from declaration required in a projects
docker-compose.yml
.volumes_from
has been dropped in the Docker Compose file spec for v3 but v2 supports it.This issue occurs with both v2 and v3 file formats.
Verified on WSL builds as well.
I'd like to refactor
volumes_from
to usevolumes
but am not sure how to configure that using the unnamed volume from amazeeio_ssh-agent.Local setup versions
Pygmy-go
Steps to reproduce
docker-compose.yml
file to specify only the CLI service because of an error when referencing that service in the Dockerfile of the php and nginx services.docker-compose up -d
Test steps
docker-compose exec cli bash
Actual behaviour
The following is output to stdout
Expected behaviour
The stack builds, ssh agent is running and the host identity is added in the CLI service.