vn-docker/README.md

31 lines
434 B
Markdown
Raw Normal View History

# Docker
2020-01-07 09:22:41 +00:00
2020-01-07 11:14:08 +00:00
Dockerfile and compose files used as basis for service deployment.
2020-01-16 14:09:47 +00:00
## Build and push an image
Move to desired folder
```
$ cd [folder]
```
Build the image.
```
$ docker build -t [registryUrl]/[imageName]:[tag] .
```
Login into docker registry.
```
$ docker login [registryUrl]
```
Push the image.
```
$ docker push [registryUrl]/[imageName]:[tag]
```
Logout from docker registry.
```
$ docker logout [registryUrl]
```