- Search container by id, name, state and image
- Start, stop, restart, remove and kill containers
- Recreate containers (remove old and start new container)
- Update container (Pull current image and start new container)
- Switch image-tag (Select tag from registry, pull and start new container)
- Rename container
- Search images by id and name
- Automatically pull updates of used images
- Pull and delete images
- Search images by id and name
docker run \
-d \
--name=cawandu \
--restart=always \
-p 7777:7777 \
-v /var/log/apps:/var/log/apps \
-v /var/run/docker.sock:/var/run/docker.sock \
-e REGISTRY_USERNAME=jeggers \
-e REGISTRY_EMAIL="eggers.julian@gmail.com" \
-e REGISTRY_PASSWORD="123456" \
jeggers/cawandu:latest
docker run \
-d \
--name=cawandu \
--restart=always \
-p 7777:7777 \
-v /var/log/apps:/var/log/apps \
-v /home/ubuntu/.docker/machine/certs/:/home/ubuntu/.docker/machine/certs/ \
-e HOST_URI=https://192.168.0.55:2376 \
-e HOST_CERTIFICATES="/home/ubuntu/.docker/machine/certs" \
-e REGISTRY_USERNAME=jeggers \
-e REGISTRY_EMAIL="eggers.julian@gmail.com" \
-e REGISTRY_PASSWORD="123456" \
jeggers/cawandu:latest
Environment variable | Required | Default | Example |
---|---|---|---|
HOST_URI | no | https://192.168.0.55:2376 | |
HOST_CERTIFICATES | no | /home/ubuntu/.docker/machine/certs | |
REGISTRY_USERNAME | no | jeggers | |
REGISTRY_EMAIL | no | eggers.julian@gmail.com | |
REGISTRY_PASSWORD | no | 123456 | |
PULL_MODE | no | RUNNING | (ALL, RUNNING, NONE) |