一、环境
docker -v
Docker version 23.0.6, build ef23cbc
二、查看登录信息
1、查看都登录了哪些仓库
cat /root/.docker/config.json
{
"auths": {
"registry-dev.xxx.johnny.com:18083": {
服务器托管网 "auth": "YWRtaW46YWRtaW4xMjM="
},
"registry-public.johnny.com": {
"auth": "YWRtaW46YWRtaW4xMjM="
},
"registry.xxx.johnny.com": {
"auth": "YWRtaW46YWRtaW4xMjM="
},
"registry.kxy-nm.xxx.johnny.com": {
服务器托管网 "auth": "YWRtaW46YWRtaW4xMjM="
},
"registry.kxy-sy.xxx.johnny.com": {
"auth": "YWRtaW46YWRtaW4xMjM="
},
"registry.xxx.johnny.com": {
"auth": "YWRtaW46QlI2RUpZZjM="
},
"repository.poc-tst.com:18083": {
"auth": "YWRtaW46YWRtaW4xMjM="
}
}
}
2、查看用户名和密码
根据上面的auth
进行解析
echo "YWRtaW46YWRtaW4xMjM=" | base64 --decode
admin:admin123
三、查看证书
ll /etc/docker/certs.d/
drwxr-xr-x 2 root root 20 8月 21 14:48 registry-dev.johnny.com:18083
drwxr-xr-x 2 root root 20 9月 1 11:54 registry.johnno.com
drwxr-xr-x 2 root root 20 9月 1 11:54 registry.kxy-sy.johnny.com
drwxr-xr-x 2 root root 20 8月 16 14:54 repository.poc-tst.com:18083
ll /etc/docker/certs.d/registry.johnno.com
-rw-r--r-- 1 root root 2033 8月 21 14:48 ca.crt
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
某日二师兄参加XXX科技公司的C++工程师开发岗位第14面: 面试官:在C++中,有哪些可执行体? 二师兄:可执行体? 面试官:也就是可调用对象。 二师兄:让我想一想。函数、函数指针、类的静态方法、类的成员方法、仿函数、lambda表达式。 面试官:能说一说他…