Compose: use context with git repo, specifying branch

Created on 12 Jul 2016  路  1Comment  路  Source: docker/compose

Is there a way to use the docker-compose build, with git repo as context specifying a single branch that is not master?

kinquestion

Most helpful comment

Not checked the code, but assuming compose just passes the build context straight through to the daemon, in which case yes, different branches / commits (whole range of options) are supported.

See here: https://docs.docker.com/engine/reference/commandline/build/

>All comments

Not checked the code, but assuming compose just passes the build context straight through to the daemon, in which case yes, different branches / commits (whole range of options) are supported.

See here: https://docs.docker.com/engine/reference/commandline/build/

Was this page helpful?
0 / 5 - 0 ratings