All Projects → BradleyA → Search Docker Registry V2 Script.1.0

BradleyA / Search Docker Registry V2 Script.1.0

Licence: mit
view-private-registry is a simple bash script for listing images in a private registry v2, docker search registry-v2

Programming Languages

shell
77523 projects
shellscript
22 projects

Projects that are alternatives of or similar to Search Docker Registry V2 Script.1.0

Docker registry cli
Docker Registry CLI - Provides search functionality for Docker Registry (UI and CLI)
Stars: ✭ 48 (+41.18%)
Mutual labels:  registry, docker-image, docker-registry
Dockercheatsheet
🐋 Docker Cheat Sheet 🐋
Stars: ✭ 3,301 (+9608.82%)
Mutual labels:  registry, docker-image, docker-registry
cleanreg
A small tool to clean up Docker Registries (v2).
Stars: ✭ 48 (+41.18%)
Mutual labels:  registry, docker-registry
ttl.sh
An anonymous & ephemeral Docker image registry
Stars: ✭ 107 (+214.71%)
Mutual labels:  registry, docker-registry
Image Syncer
Docker image synchronization tool for Docker Registry V2 based services
Stars: ✭ 313 (+820.59%)
Mutual labels:  docker-image, docker-registry
Verdaccio
📦🔐 A lightweight Node.js private proxy registry
Stars: ✭ 12,667 (+37155.88%)
Mutual labels:  registry, docker-image
Login Action
GitHub Action to login against a Docker registry
Stars: ✭ 149 (+338.24%)
Mutual labels:  registry, docker-registry
Lstags
Explore Docker registries and manipulate Docker images!
Stars: ✭ 277 (+714.71%)
Mutual labels:  docker-image, docker-registry
Awesome Docker
🐳 A curated list of Docker resources and projects
Stars: ✭ 20,870 (+61282.35%)
Mutual labels:  docker-image, docker-registry
Kraken
P2P Docker registry capable of distributing TBs of data in seconds
Stars: ✭ 4,849 (+14161.76%)
Mutual labels:  docker-image, docker-registry
Klar
Integration of Clair and Docker Registry
Stars: ✭ 480 (+1311.76%)
Mutual labels:  docker-image, docker-registry
Docker Registry Pruner
Tool to apply retention logic to docker images in a Docker Registry
Stars: ✭ 122 (+258.82%)
Mutual labels:  registry, docker-image
Pierone
STUPS' Docker registry with S3 backend, immutable tags and SCM source tracking
Stars: ✭ 57 (+67.65%)
Mutual labels:  registry, docker-registry
craneoperator
Gives you a simple web interface for browsing around a Docker Registry
Stars: ✭ 116 (+241.18%)
Mutual labels:  registry, docker-registry
Dockerscan
Docker security analysis & hacking tools
Stars: ✭ 1,046 (+2976.47%)
Mutual labels:  registry, docker-registry
Dragonfly
Dragonfly is an intelligent P2P based image and file distribution system.
Stars: ✭ 5,720 (+16723.53%)
Mutual labels:  registry, docker-image
Docker Build With Cache Action
Build and push docker images caching each stage to reduce build time
Stars: ✭ 228 (+570.59%)
Mutual labels:  docker-image, docker-registry
Docker Registry Ui
Docker Registry UI
Stars: ✭ 233 (+585.29%)
Mutual labels:  docker-image, docker-registry
Manifest Tool
Manifest tool for manifest list object creation/query
Stars: ✭ 355 (+944.12%)
Mutual labels:  docker-image, docker-registry
Registry Cli
Scripts for easy manipulation of docker-registry from command line (and from scripts)
Stars: ✭ 609 (+1691.18%)
Mutual labels:  registry, docker-registry

Search-docker-registry-v2-script

GitHub Stable Release GitHub Release Date GitHub Commits Since GitHub Last Commits

Open GitHub Issue GitHub Open Issues GitHub Closed Issues

GitHub Repo Clones GitHub Repo Views GitHub Size Language Bash MIT License

Goal

List images on docker registry v2

If you like this repository, select in the upper-right corner, GitHub stars, thank you.

Table of content

Table of content



Descriptions

view-private-registry is a bash script for listing images in a private registry v2. It does not require registry v2 to be running on the system, only the filesystem where the images are stored. Docker search registry v2 functionality is currently not supported at the time of this writing. See discussion since Feb 2015: "propose registry search functionality #206" https://github.com/docker/distribution/issues/206

view-private-registry-remote is a bash script for listing images in a private registry v2 from a remote system that does not have the NFS filesystem mounted where the images are stored. This script requires ssh to be installed and configured on the systems required to run this script. This script calls the view-private-registry script that is on the host with the NFS filesystem mounted.

Return to top

Install

To Install, change into a directory that you want to download the scripts. Use git to pull or clone these scripts into the directory. If you do not have Git installed then enter; "sudo apt-get install git" if using Debian/Ubuntu. Other Linux distribution install methods can be found here: https://git-scm.com/download/linux. On the GitHub page of this script use the "HTTPS clone URL" with the 'git clone' command.

git clone https://github.com/BradleyA/Search-docker-registry-v2-script
cd Search-docker-registry-v2-script

Edit view-private-registry script, change PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY to the path to your registry storage filesystem root directry. It is the volume you used when starting the registry for /var/lib/registry.

 PERSISTENT_REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY="<your registry storage filesystem root directry>"

Move the script or create a symbolic link to a location in your working path; example /usr/local/bin. To find directories in your working path use; "echo $PATH".

cp view-private-registry ..
cd ..
sudo ln -s $PWD/view-private-registry /usr/local/bin/view-private-registry

Edit view-private-registry-remote script, change REMOTE_REGISTRY_HOST to the remote host that has the registry v2 mounted, change REMOTE_ADMIN_ACCOUNT to the ssh admin account on the REMOTE_REGISTRY_HOST.

 REMOTE_REGISTRY_HOST="<server IP address or FQDN>"
 REMOTE_ADMIN_ACCOUNT="<ssh admin account for the above host>"

Move the script or create a symbolic link to a location in your working path (see example above).

Return to top

Usage

view-private-registry

or

view-private-registry-remote

Return to top

Output

$ view-private-registry
busybox:latest
gcr.io/google_containers/etcd:2.0.9
gcr.io/google_containers/hyperkube:v0.21.2
gcr.io/google_containers/pause:0.8.0
google/cadvisor:latest
jenkins:latest
logstash:latest
mongo:latest
nginx:latest
python:2.7
redis:latest
registry:2.1.1
stackengine/controller:latest
tomcat:7
tomcat:latest
ubuntu:14.04.2
Number of images:   16
Disk space used:    1.7G    /mnt/three/docker-registry/registry-data

Return to top

TLS

I wrote a few scripts that may help you with the private registry and TLS. The scripts are create-registry-tls.sh, copy-registry-tls.sh, and check-registry-tls.sh which can be found in https://github.com/BradleyA/docker-security-infrastructure/blob/master/docker-TLS/README.md. These scripts support --help and --usage options to reduce the learning curve.

Return to top


Contribute

Please do contribute! Issues and pull requests are welcome. Thank you for your help improving software.

Return to top

Author

Follow @bradleyaustintx GitHub followers

Return to top

Stars

Stargazers repo roster for @BradleyA/Search-docker-registry-v2-script.1.0

Return to top

Forks

Forkers repo roster for @BradleyA/Search-docker-registry-v2-script.1.0

Return to top

Tested OS

  • CoreOS 723.3.0
  • Raspbian GNU/Linux 10 (buster)
  • Ubuntu 14.04.3 LTS (amd64,armv7l)
  • Ubuntu 16.04.7 LTS (amd64,armv7l)
  • Ubuntu 18.04.5 LTS (amd64,armv7l)

Return to top

Design Principles

  • Have a simple setup process and a minimal learning curve
  • Be usable as non-root
  • Be easy to install and configure

Return to top

License

MIT License

Copyright (c) 2020 Bradley Allen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Return to top

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].