Great work! Thank you very much.
Unfotuently, this gave me an error about invalid docker syntax. But after much trail and error, I've got it working.
You can show all alias with the same command (without any option parameter / or with -p)
You can also inspect an alias with the help of the tool "type":
type docker-compose
but the output was kind of strange with leading `ocker-compose...
tl;dr
I changed my alias name from "docker-compose" to "compose" and thats it.
EDIT:
ok, nvm. it's still broken...
the output of my .bash_profile file is: (I added both alias' docker-compose and compose for testing purposes..)
[...]
alias v="ls -lA"
#docker-compose as container
alias docker-compose='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:$PWD" -w="$PWD" docker/compose:latest'
alias compose='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:$PWD" -w="$PWD" docker/compose:latest'
alias ll='ls -lah'
seems good to me. but when I print the alias list:
'lias compose='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$(PWD):$(PWD)" -w="$(PWD)" docker/compose:latest
'lias docker-compose='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$(PWD):$(PWD)" -w="$(PWD)" docker/compose:latest
alias ll='ls -lah'
alias ls='/bin/ls $LS_OPTIONS'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias user='su -ls /bin/bash'
alias v='ls -lA'
again these leading 'lias ....
and my type compose output:
'ompose is aliased to `docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:$PWD" -w="$PWD" docker/compose:latest
I don't get it... when I add the alias via hand, either in the .bash_profile file or directly in the cli, everthing works..
Here is the output from the compose command:
docker: invalid reference format.
See 'docker run --help'.
Do you guys have any ideas?