容器:docker 的相关操作

1 登录docker仓库 - 使用明文的登录信息

docker login -u 【username】 -p 【password】 repo.xxx.top:28802 
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/ttquser/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

 

2 查看docker仓库中的镜像

  【登录】

docker login matrix.xxx.com:8082
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /home/ttquser/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

  【获取】

 curl -XGET matrix.xxx.com:8082/v2/_catalog
{"repositories":["android-studio","z7_lin_drv_build_alientek","zynq-build-tool-v2.0"]}

 

3 【获取】

curl -XGET matrix.xxx.com:8082/v2/_tags

 

4 【删除】

docker rmi matrix.xxx.com:8082/zynq-build-tool-v2.0

 

5 【获取具体】

curl -X GET matrix.xxx.com:8082/v2/z7_lin_drv_build_alientek

posted @ 2022-02-10 21:33  算法阿杰  阅读(75)  评论(0)    收藏  举报