One of the Nautilus project developers need access to run docker commands on App Server 1. This user is already created on the server. Accomplish this task as per details given below:
User mark is not able to run docker commands on App Server 1 in Stratos DC, make the required changes so that this user can run docker commands without sudo.
Step-by-Step Solution
# SSH to App Server 1
ssh tony@stapp01
# Password: Ir0nM@n
# Switch to root
sudo su -
# Password: Ir0nM@n
# Verify user exists
id mark
# Check docker group
cat /etc/group | grep docker
# Add user to docker group
usermod -aG docker mark
# Verify addition
id mark
groups mark
cat /etc/group | grep docker
# IMPORTANT: User must logout and login again
exit # from root
exit # from tony
# Login as mark from jump-host
ssh mark@stapp01
# (set password if needed)
# Test Docker access
docker ps
docker images
docker version
Top comments (0)