How to run docker load in remote server

To assign the docker group to your user (please note that there might be some security concerns in doing this):

usermod -G docker $(whoami)

To load the images, you can use:

docker load -i filename.tar

Another possible approach might be to define the command in the sudoers file. Check the /etc/sudoers and add something like this:

Cmnd_Alias DOCKER_LOAD_CMD = docker load -i file.tar

If you plan to follow this, you should check very carefully with a second terminal open if there are errors of any kind (you might break the sudo functionality and that’s not fun)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top