$ docker-compose -f my-stack.yml run docker
Hello World
Sun Jan 27 15:07:48 UTC 2019
Created
January 27, 2019 15:08
-
-
Save mageddo/c60126783d548ee9d5b9fcd222d3dd8c to your computer and use it in GitHub Desktop.
Multiline Commands On Docker Compose
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: '3' | |
services: | |
docker: | |
image: alpine | |
command: | | |
sh -c ' | |
echo "Hello World" | |
date | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment