#S1: public ip of the docker engine
#S2: registry user
#S3: registry pwd
#S4: registry registry ip
#S5: registry port
#S6: image name
#S7: image tag
export DOCKER_HOST=tcp://$1 DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH=/decide/.docker/client/keys

docker login -u $2 -p $3 $4:$5
docker pull $4:$5/$6:$7