- build
go build -x -o gopull
- or run
go run main.go help
./gopull download redis
./gopull download redis@sha256:c35af3bbcef51a62c8bae5a9a563c6f1b60d7ebaea4cb5a3ccbcc157580ae098 -t redis:custom_tag
# docker导入
docker load -i redis.tar
# ctr导入
ctr image import redis.tar
./gopull pull redis
./gopull pull redis@sha256:c35af3bbcef51a62c8bae5a9a563c6f1b60d7ebaea4cb5a3ccbcc157580ae098 -t redis:custom_tag
./gopull push redis
./gopull push redis -t your_registry/your_repository:your_tag
./gopull login docker.io
./gopull logout docker.io
./gopull inspect redis