colima icon indicating copy to clipboard operation
colima copied to clipboard

Run rootless Docker inside the VM

Open XhstormR opened this issue 1 week ago • 0 comments

Description

Currently, Docker is running in the virtual machine as the root user. I would like to be able to run the daemon in non-privileged mode for better security.

inside the VM:

user@colima:/Users/user/Downloads$ ps -ef|grep docker
root        1471       1  0 13:12 ?        00:00:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --host-gateway-ip=192.168.5.2
user        2465    1799  0 13:17 pts/0    00:00:00 grep --color=auto docker
user@colima:/Users/user/Downloads$ docker info|grep rootless
user@colima:/Users/user/Downloads$

If Docker is running in rootless mode, output should contain rootless keywords:

$ docker info
Client: Docker Engine - Community
 Version:    28.3.3
 Context:    rootless
...
Server:
...
 Security Options:
  seccomp
   Profile: builtin
  rootless
  cgroupns
...

XhstormR avatar Nov 28 '25 10:11 XhstormR