Let's assume that you have a private Harbor instance with a public project which proxies Dockerhub.
When you have a container configuration like the following everything works fine after a reboot:
vyos@vyos# show container
name alpine {
allow-host-networks
image registry.example.org/dockerhub/library/alpine:latest
restart always
}
registry registry.example.org {
}It still works when you add authentication to it:
vyos@vyos# show container
name alpine {
allow-host-networks
image registry.example.org/dockerhub/library/alpine:latest
restart always
}
registry registry.example.org {
password "my-password"
username "my-username"
}But then, after a reboot the configuration is not loaded:
vyos@vyos:~$ configure
WARNING: There was a config error on boot: saving the configuration now could overwrite data.
You may want to check and reload the boot config
[edit]
vyos@vyos# load
Loading configuration from 'config.boot'
Load complete. Use 'commit' to make changes effective.
[edit]
vyos@vyos# compare
+ container {
+ name alpine {
+ allow-host-networks
+ image "registry.example.org/dockerhub/library/alpine:latest"
+ restart "always"
+ }
+ registry registry.example.org {
+ authentication {
+ password "my-password"
+ username "my-username"
+ }
+ }
+ }