之前启用 docker buildx 之后,我的 docker build 也变成 docker build 了!!!
可恶,怎么关闭 docker buildx?
╰─➤ docker build
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.
Usage: docker buildx build [OPTIONS] PATH | URL | -
Start a build
执行 docker buildx uninstall
没有效果
╰─➤ docker buildx uninstall 130 ↵
╭─pon@admini ~/code/me/github/milvus/build/docker/builder/cpu/ubuntu20.04 ‹master*›
╰─➤
╭─pon@admini ~/code/me/github/milvus/build/docker/builder/cpu/ubuntu20.04 ‹master*›
╰─➤ docker build
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.
Usage: docker buildx build [OPTIONS] PATH | URL | -
Start a build
~/.docker/config.json 里面也没有别名
╰─➤ cat ~/.docker/config.json 1 ↵
{
"auths": {
"192.168.31.245:8082": {
"auth": "YWRtaW46eWpjeWpj"
}
}
}%
别名的实质就是往
~/.docker/config.json
文件(如果你没改过默认配置文件地址的话)里写了个aliases
。你也可以试着手动编辑一下这个配置文件,把别名删掉,然后重启 docker 服务。