# Verdnatura Docker image repository

Dockerfile and compose files used as basis for Verdnatura service deployment.

Some scripts are provided to speed up the most common actions:

* *image-build.sh*: Build, tag and push an own image.
* *image-cache.sh*: Cache docker hub image in the local registry.

Use *image.conf* for local registry and repository configuration.

## Registry authentication

Login into docker registry, if you don't logout, credentials will remain saved
in your home directory.
```
docker login $registry
```

Logout from docker registry.
```
docker logout $registry
```

## Test image

Run image locally.
```
docker run --name test $registry/$image:$tag
```
