Task Information
One of the Nautilus project developers need access to run docker commands on App Server 2. This user is already created on the server. Accomplish this task as per details given below:
User siva is not able to run docker commands on App Server 2 in Stratos DC, make the required changes so that this user can run docker commands without sudo.
Task Solutions
Part 1: Lab Step-by-Step Guidelines
✅ Task
On App Server 2 (stapp02), user siva must be able to run Docker commands without using sudo.
Step 1: Login to the Jump Host
ssh thor@jump-host # Password: mjolnir123
Enter fullscreen mode
Exit fullscreen mode
Step 2: SSH into App Server 2
ssh steve@stapp02 # Password: Am3ric @
Enter fullscreen mode
Exit fullscreen mode
Step 3: Add user siva to the docker group
Run:
sudo usermod -aG docker siva
Enter fullscreen mode
Exit fullscreen mode
This is the main fix.
Step 4: Verify user group membership
Check whether siva is now part of the docker group:
id siva
Enter fullscreen…