The .ssh is mounted, but the owner is my local user,
sudo -H clearml-agent ...
to allow sudo to access home
I just checked and my user is part of the docker group.
What exactly do you mean by docker run permissions?
I think for it to work you have to have ssh running on the host machine (the socket client itself), no?
Perfect, thanks! Only issue that is left, is that it seems like .ssh
is used even when I provideSSH_AUTH_SOCK
. I created an issue here: https://github.com/allegroai/clearml-agent/issues/45
Hmm you either need to run with SUDO or make sure the running user has docker run permissions
By default SSH server is not running in a lot of scenarios (k8s for example, Windows, MacOS)...
What exactly do you mean by docker run permissions?
Yes, but this seems pretty reasonable to assume imo.
Sure, ReassuredTiger98 just add them after the docker image in the "Base Docker image" section under the execution Tab. The same applies for setting it from code.
example:nvcr.io/nvidia/tensorflow:20.11-tf2-py3 -v /mnt/data:/mnt/data
You can also always force extra docker run arguments by changing the clearml.conf on the agent itself:
https://github.com/allegroai/clearml-agent/blob/822984301889327ae1a703ffdc56470ad006a951/docs/clearml.conf#L121
Okay, I didn't know that. I just saw that VSCode seems to use a similar setup for their docker devcontainers.
I am getting permission errors when I try to use the clearml-agent with docker containers. The .ssh is mounted, but the owner is my local user, so the docker containers root does not seem to have the correct permissions.
Is there a way for me to configure/add the run arguments for the docker run
call?