Docker
docker compose
Add your user to the docker group
Step 1: Run command > sudo usermod -aG docker $USER
Step 2: Logout from the machine
Step 3: Relogin and Run docker command without sudo
Working with docker running in remote machine
Pre-Condition: User should be added to docker group
Step 1: Add host in ~/.ssh/config
Host <SSH_HOST_ALIAS>
HostName <HOST_IP_OR_HOSTNAME>
User <LOGIN_USERNAME>
IdentityFile <PATH_TO_PRIVATE_KEY>
# Restrict authentication to the specified private key
IdentitiesOnly yes