Last active
December 12, 2016 15:47
-
-
Save shishkin/c206e938abdc5aee7649662e2dbd4ce1 to your computer and use it in GitHub Desktop.
Docker args expansion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
echo: | |
build: . | |
command: ${USER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM busybox | |
ENTRYPOINT ["sh", "-c", "echo $0 $@", "hello"] | |
CMD ["world"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$0
is needed, because$@
skips one argument.