Skip to content

Instantly share code, notes, and snippets.

@shishkin
Last active December 12, 2016 15:47
Show Gist options
  • Save shishkin/c206e938abdc5aee7649662e2dbd4ce1 to your computer and use it in GitHub Desktop.
Save shishkin/c206e938abdc5aee7649662e2dbd4ce1 to your computer and use it in GitHub Desktop.
Docker args expansion
version: '2'
services:
echo:
build: .
command: ${USER}
FROM busybox
ENTRYPOINT ["sh", "-c", "echo $0 $@", "hello"]
CMD ["world"]
@shishkin
Copy link
Author

$0 is needed, because $@ skips one argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment