As a best practice, it is recommended to pull/push Docker images with a normal user (not root/sudo).
We suggest that you create a group named ‘docker’ and assign a new or existing user to be a member of that group. The docker client will check to see if a given user is a member of the ‘docker’ group; if so, it will allow that user to push using the ‘.dockercfg’ configuration that is deployed in the user’s home directory.
To achieve this, perform the following steps (This assumes you will be working in a Linux environment):
Note that “docker.jfrogdev.com” is an example for the Artifactory URL that points to the reverse proxy that handles the https requests and redirects to the docker repository in an Artifactory Pro instance.