Docker Swarm – Registry with Basic Auth

Exported on 30-Aug-2021 14:49:17

Parameters

Name Type Script Reference Default Value Comment
Linux Node Linux / Unix Server linuxNode
Linux User Linux OS Credential linuxUser

1 - Registry Basic Auth files

The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
Deploy archive Docker Swarm - Registry with Basic Auth.zip to remote path files/
  1. Locate Files archive "Docker Swarm - Registry with Basic Auth.zip", This can be downloaded from Attune
  2. Copy the Files archive to the server
  3. Extract the root of the Files archive to files/, relative to the home directory
  4. Check that the files are in the correct location

2 - Deploy Registry with Basic Auth

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
cd files && sudo docker stack deploy -c registry-basic-auth.yml registry-basic-auth