To run the docker login command non-interactively, you can set the Apple macOS keychain: https://github.com/docker/docker-credential-helpers/releases .