Is it possible to push a docker-compose file along with the Dockerfiles as an image? #175
Replies: 5 comments
-
|
Why not use a "LABEL" in the Dockerfile that points to the git repo with the Dockerfile and Compose file? We used this in past. Then you can
|
Beta Was this translation helpful? Give feedback.
-
|
Ha... autoopen the url on a mac. |
Beta Was this translation helpful? Give feedback.
-
|
That's a good idea for documentation purposes @clemenko. The unofficial standard for that label is |
Beta Was this translation helpful? Give feedback.
-
|
Cool. didn't know about that site. |
Beta Was this translation helpful? Give feedback.
-
|
Note this is now possible with Docker's new "App" tool: https://github.com/docker/app |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
That's currently not possible. You'd need to keep your compose files along with your Dockerfile in a git repo. An image is a output of building your app from the Dockerfile, and isn't meant to be a transport for dockerfile/compose files. Images do have metadata and
docker image historycan technically give you Dockerfile commands, but it's not really a replacement for them.Beta Was this translation helpful? Give feedback.
All reactions