Deploying
Registry images
Skip the build and run an image straight from a registry, public or private.
Deploy an image#
This creates the app if needed and deploys the image. From then on, the app runs that image:
ps:rebuildpulls the tag again and deploys it.builder:imagewith another tag deploys that one.git pushto the app is refused, so a push can't replace the image by accident.
To build the app from git again:
Private registries#
Log in once. Logins apply to every app, for builder:image, for compose image: services, and for a Dockerfile's FROM:
registry:login reads the password from stdin, as above, or takes it as the last argument.
Example: a Redis for your app#
Your app reaches it by name on any server; see Private networking. If it should keep its data across deploys, give it a volume: