containerlab
containerlab copied to clipboard
A docker config from the root user is read when using `sudo` without `-E` flag
While this is expected, since home env is not carried out to a superuser when no -E flag is present for sudo, we wanted to make sure that users have a happy time and for other sudo invokations we automatically load the environment (such as keys directory).
We need to do the same for the ~/.docker/config.json that is read by the docker daemon to look for the auth credentials