Menu

1 / 2

2.Docker Update Permissions

DEV Community·Thu Kha Kyawe·6 months ago
#2HQn27hZ
#task#kodekloud#docker#software#siva
Reading 0:00
15s threshold

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…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.