shell.sh to fall back to docker compose (no dash) #920
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix bug where docker-compose command not found
Goal
On a fresh Ubuntu install after installing Docker (and compose) by following https://docs.docker.com/engine/install/ubuntu/ results in an error saying that the command
docker-compose
is not found when running./shell.sh
to attach to the php devilbox container.Did do a quick search to see if anyone else raised this issue but I couldn't find anything, my apologies if this is a repeat
DESCRIPTION
Did some quick Googling to find the difference between
docker-compose
anddocker compose
. TLDR:docker-compose
is an older python implementation anddocker compose
is a v2 implementation of the same thing written in Go.I've updated
shell.sh
to check ifdocker-compose
exists first and if not then usedocker compose