'Change docker process owner on mac os

I have a « user1 » account on a mac os system. I have install docker from official site download with this user1 account.

I do not remember exactly but mac os asked me an admin user account authentification during docker installation.

There is something strange : if i log on my mac with an admin account, i cannot see all users running containers with « docker ps -a » command.

And if i type « ps aux | grep docker » in my terminal i can see docker server is runned as « user1 ». How can i change this user ?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source