vn-docker/README.md

481 B

Docker

Dockerfile and compose files used as basis for service deployment.

Build and push an image

Build the image.

$ docker build -t [registryUrl]/[imageName]:[tag] [folder]

Login into docker registry.

$ docker login [registryUrl]

Push the image.

$ docker push [registryUrl]/[imageName]:[tag]

Logout from docker registry (Optional, if you don't logout, credentials will remain saved at your home directory).

$ docker logout [registryUrl]