Docker Push Readme - Update the docs of your container repo on Dockerhub, Quay, Harbor from a file
500K+
This is a container image of docker-pushrm, a tool that lets you update the README of your container repo on Dockerhub, Quay or Harbor from a local markdown file.

Check the full docs for an introduction.
$ ls
README.md
$ docker run --rm -t \
-v $(pwd):/myvol \
-e DOCKER_USER='my-user' -e DOCKER_PASS='my-pass' \
chko/docker-pushrm:1 --file /myvol/README.md \
--short "My short description" --debug my-user/my-repo
...
DEBU content validation successfull, readme successfully pushed to repo server
Let's dissect this a bit:
v1) of this image (chko/docker-pushrm:v1). Recommended for most use cases./myvol)--file <path>my-user/my-repoDOCKER_USER and DOCKER_PASS)--debug to get additional log output (optional)--short <string> (optional)Alternatively all params can also get set with environment variables:
$ docker run --rm -t \
-v $(pwd):/myvol \
-e DOCKER_USER='my-user' -e DOCKER_PASS='my-pass' \
-e PUSHRM_PROVIDER=dockerhub -e PUSHRM_FILE=/myvol/README.md \
-e PUSHRM_SHORT='my short description' \
-e PUSHRM_TARGET=docker.io/my-user/my-repo -e PUSHRM_DEBUG=1 \
chko/docker-pushrm:1
Use the --provider harbor2 flag:
$ ls
README.md
$ docker run --rm -t \
-v $(pwd):/myvol \
-e DOCKER_USER='my-user' -e DOCKER_PASS='my-pass' \
chko/docker-pushrm:1 --file /myvol/README.md \
--provider harbor2 --debug demo.goharbor.io/my-project/my-repo
--provider quay flagAPIKEY__<SERVER>_<DOMAIN> or DOCKER_APIKEY for apikey credentials$ ls
README.md
$ docker run --rm -t \
-v $(pwd):/myvol \
-e APIKEY__QUAY_IO='my-apikey' \
chko/docker-pushrm:1 --file /myvol/README.md \
--provider quay --debug quay.io/my-user/my-repo
| env var | example value | description |
|---|---|---|
DOCKER_USER | my-user | login username |
DOCKER_PASS | my-password | login password |
DOCKER_APIKEY | my-quay-api-key | quay api key |
APIKEY__<SERVER>_<DOMAIN> | my-quay-api-key | quay api key (alternative) |
PUSHRM_PROVIDER | dockerhub, quay, harbor2 | repo provider type |
PUSHRM_SHORT | my short description | set/update repo short description |
PUSHRM_FILE | /myvol/README.md | path to the README file |
PUSHRM_DEBUG | 1 | enable verbose output |
PUSHRM_CONFIG | /myvol/.docker/config.json | Docker config file (for credentials) |
PUSHRM_TARGET | docker.io/my-user/my-repo | container repo ref |
Presedence:
Content type
Image
Digest
Size
3.7 MB
Last updated
about 4 years ago
docker pull chko/docker-pushrm