Clean Docker repo
You must clean up repo every six months.
The root of the docker hosted repository is at:
nexus-docker-publish.ship.gov.sg/<repo-name> Clean up Docker repo
To clean up Docker repo
Log in to the docker registry using the following command:
docker login nexus-docker-publish.ship.gov.sgAdd the following prefix to your images:
nexus-docker-publish.ship.gov.sg/<repo-name>For example, an alpine image would be tagged as such:
docker tag <image original tag or image id> nexus-docker-publish.ship.gov.sg/<repo-name>/alpinePush the image to the docker registry using the following command, assuming the same alpine image you have prepared in the previous step:
docker push nexus-docker-publish.ship.gov.sg/<repo-name>/alpinePull the image using the following command:
docker pull nexus-docker-publish.ship.gov.sg/<repo-name>/alpineIf you are using the docker proxy repo that points to docker registry, use the following commands. You can pull the images without login.
docker pull nexus-docker.ship.gov.sg/<image:tag>For example,
docker pull nexus-docker.ship.gov.sg/alpine:latest