# Install docker sudo apt install docker.io # enable user to start as sudo without pw sudo visudo # add to the bottom: # ALL=(ALL) NOPASSWD: /usr/bin/dockerd # bashrc: # Start docker: RUNNING=`ps aux | grep dockerd | grep -v grep` if [ -z "$RUNNING" ]; then sudo dockerd > /dev/null 2>&1 & disown fi ## if "az acr login -n tsntestmlacr" doesn't work out of the box: #### note: the lower auth is based64 for 0000... default user, no need to change TOKEN=$(az acr login --name tsntestmlacr --expose-token --output tsv --query accessToken) cat << EOF > /home/malu/.docker/config.json { "auths": { "tsntestmlacr.azurecr.io": { "auth" : "MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwOg==", "identitytoken": $TOKEN } } } EOF ## or instead if config.json doesn't get loaded: az acr login --name tsntestmlacr --expose-token --output tsv --query accessToken | docker login tsntestmlacr.azurecr.io -u 00000000-0000-0000-0000-000000000000 --password-stdin