Skip to content

Run rootless Docker inside the VM #1458

@XhstormR

Description

@XhstormR

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions