doc(buildkitd.toml.md): Add mirror configuration

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
master
Hans van den Bogert 2021-12-10 21:00:46 +01:00
parent e89482149f
commit cbafa22053
1 changed files with 5 additions and 1 deletions

View File

@ -90,11 +90,15 @@ insecure-entitlements = [ "network.host", "security.insecure" ]
# registry configures a new Docker register used for cache import or output. # registry configures a new Docker register used for cache import or output.
[registry."docker.io"] [registry."docker.io"]
mirrors = ["hub.docker.io"] mirrors = ["yourmirror.local:5000"]
http = true http = true
insecure = true insecure = true
ca=["/etc/config/myca.pem"] ca=["/etc/config/myca.pem"]
[[registry."docker.io".keypair]] [[registry."docker.io".keypair]]
key="/etc/config/key.pem" key="/etc/config/key.pem"
cert="/etc/config/cert.pem" cert="/etc/config/cert.pem"
# optionally mirror configuration can be done by defining it as a registry.
[registry."yourmirror.local:5000"]
http = true
``` ```