It would be nice to be able to pipe a docker-compose.yml file into docker-compose. Yes, I know, it would not be good practice to run your production environments using this. However, it would be super useful for quickly testing different docker stack setups.
curl https://raw.githubusercontent.com/liberapay/liberapay.com/master/docker-compose.yml | docker-compose up
Use a
-fwith-(dash) as the filename to read the configuration fromstdin. Whenstdinis used all paths in the configuration are relative to the current working directory.
Ah, thanks so much
-f is no longer a docker-compose option, it seems?
Maybe they actually added piping ???
Nothing has changed guys.
I assume the docs are saying that you can do some-command | docker-compose -f -. When running docker-compose -f - I get the help screen. Maybe the docs could be more explicit on what they mean by that, and how to use it?
Seeing the same error as @towc
@towc @felixhammerl
You are seeing the help screen because you must give a command to docker-compose
Try:
some-command | docker-compose -f - config
or
some-command | docker-compose -f - up
Most helpful comment
Nothing has changed guys.