vn-docker/README.md

575 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 (If you don't logout, credentials will remain saved in your home directory).

$ docker logout [registryUrl]

Test image locally

$ docker run -d --name [containerName] [registryUrl]/[imageName]:[tag]