containerlab icon indicating copy to clipboard operation
containerlab copied to clipboard

A docker config from the root user is read when using `sudo` without `-E` flag

Open hellt opened this issue 1 year ago • 0 comments

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

hellt avatar Jun 10 '24 13:06 hellt