Can't start rancher with docker in ubuntu 20.04

follow the document to run rancher in ubuntu via docker, got below error and container keep restarting.

$ docker run -d --restart=unless-stopped   -p 80:80 -p 443:443   --privileged   rancher/rancher:latest

2022/01/09 06:04:06 [INFO] [mgmt-auth-gr-controller] Creating clusterRole cattle-globalrole-restricted-admin for corresponding GlobalRole
2022/01/09 06:04:06 [INFO] create kontainerdriver aliyunkubernetescontainerservice
2022/01/09 06:04:06 [INFO] create kontainerdriver baiducloudcontainerengine
2022/01/09 06:04:06 [INFO] create kontainerdriver oraclecontainerengine
2022/01/09 06:04:06 [INFO] create kontainerdriver linodekubernetesengine
2022/01/09 06:04:06 [INFO] create kontainerdriver amazonelasticcontainerservice
2022/01/09 06:04:06 [INFO] create kontainerdriver rancherkubernetesengine
2022/01/09 06:04:06 [INFO] create kontainerdriver azurekubernetesservice
2022/01/09 06:04:06 [INFO] create kontainerdriver huaweicontainercloudengine
2022/01/09 06:04:06 [INFO] create kontainerdriver tencentkubernetesengine
2022/01/09 06:04:06 [INFO] create kontainerdriver opentelekomcloudcontainerengine
2022/01/09 06:04:07 [ERROR] error syncing 'fleet-local/local': handler cluster-create: server url is missing, can't generate kubeconfig for fleet import cluster, requeuing
2022/01/09 06:04:10 [INFO] Starting cluster.x-k8s.io/v1alpha3, Kind=Machine controller
2022/01/09 06:04:10 [INFO] Watching metadata for cluster.x-k8s.io/v1alpha3, Kind=MachineDeployment
2022/01/09 06:04:11 [INFO] [mgmt-cluster-rbac-delete] Creating Default project for cluster local
2022/01/09 06:04:15 [INFO] Updating global catalog helm3-library
2022/01/09 06:04:19 [INFO] Updating global catalog system-library
2022/01/09 06:04:19 [ERROR] error syncing 'catalogs-use': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/catalogs-use": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'nodedrivers-manage': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/nodedrivers-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'workloads-manage': handler legacy-rt-cleaner: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/roletemplates/workloads-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'persistentvolumeclaims-manage': handler legacy-rt-cleaner: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/roletemplates/persistentvolumeclaims-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'kontainerdrivers-manage': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/kontainerdrivers-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'admin': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/admin": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'user-base': handler mgmt-auth-gr-controller: Post "https://127.0.0.1:6443/apis/rbac.authorization.k8s.io/v1/clusterroles": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'podsecuritypolicytemplates-manage': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/podsecuritypolicytemplates-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'oci': handler node-driver-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/nodedrivers/oci": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'secrets-view': handler legacy-rt-cleaner: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/roletemplates/secrets-view": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'clusters-create': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/clusters-create": EOF, requeuing
E0109 06:04:19.855105      33 request.go:1085] Unexpected error when reading response body: http: unexpected EOF reading trailer
2022/01/09 06:04:19 [ERROR] error syncing 'settings-manage': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/settings-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'services-manage': handler legacy-rt-cleaner: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/roletemplates/services-manage": EOF, requeuing
2022/01/09 06:04:19 [ERROR] error syncing 'storage-manage': handler legacy-rt-cleaner: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/roletemplates/storage-manage": EOF, requeuing
2022/01/09 06:04:19 [FATAL] k3s exited with: exit status 255

My ubuntu is running in Vagrant

$ cat Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-20.04"
end

macos Monterey (version 12.1)
virtualbox - Version 6.1.30 r148432 (Qt5.6.3)
vagrant - v2.2.16
Docker - version 20.10.12, build e91ed57

then I test with old version (v2.6.2), got different error

$ docker run -d --restart=unless-stopped   -p 80:80 -p 443:443   --privileged   rancher/rancher:v2.6.2

E0109 06:12:38.750418      33 reflector.go:139] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *summary.SummarizedObject: failed to list *summary.SummarizedObject: Get "https://127.0.0.1:6443/apis/storage.k8s.io/v1beta1/csistoragecapacities?limit=500&resourceVersion=0&timeout=15m0s": dial tcp 127.0.0.1:6443: connect: connection refused
I0109 06:12:38.750579      33 trace.go:205] Trace[1851436145]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168 (09-Jan-2022 06:12:27.035) (total time: 11715ms):
Trace[1851436145]: [11.71545444s] [11.71545444s] END
E0109 06:12:38.750593      33 reflector.go:139] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *summary.SummarizedObject: failed to list *summary.SummarizedObject: Get "https://127.0.0.1:6443/apis/management.cattle.io/v3/notifiers?limit=500&resourceVersion=0&timeout=15m0s": dial tcp 127.0.0.1:6443: connect: connection refused
I0109 06:12:38.750812      33 trace.go:205] Trace[846354525]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168 (09-Jan-2022 06:12:27.035) (total time: 11715ms):
Trace[846354525]: [11.715777712s] [11.715777712s] END
E0109 06:12:38.750825      33 reflector.go:139] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *summary.SummarizedObject: failed to list *summary.SummarizedObject: Get "https://127.0.0.1:6443/apis/helm.cattle.io/v1/helmcharts?limit=500&resourceVersion=0&timeout=15m0s": dial tcp 127.0.0.1:6443: connect: connection refused
I0109 06:12:38.751003      33 trace.go:205] Trace[1703065245]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168 (09-Jan-2022 06:12:27.034) (total time: 11716ms):
Trace[1703065245]: [11.716079321s] [11.716079321s] END
E0109 06:12:38.751015      33 reflector.go:139] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *summary.SummarizedObject: failed to list *summary.SummarizedObject: Get "https://127.0.0.1:6443/apis/fleet.cattle.io/v1alpha1/clusters?limit=500&resourceVersion=0&timeout=15m0s": dial tcp 127.0.0.1:6443: connect: connection refused
W0109 06:12:38.752996      33 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0109 06:12:38.753198      33 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
W0109 06:12:38.754598      33 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
I0109 06:12:38.754777      33 trace.go:205] Trace[292331815]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168 (09-Jan-2022 06:12:26.986) (total time: 11768ms):
Trace[292331815]: [11.768389788s] [11.768389788s] END
E0109 06:12:38.754804      33 reflector.go:139] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *summary.SummarizedObject: failed to list *summary.SummarizedObject: unexpected error when reading response body. Please retry. Original error: unexpected EOF
W0109 06:12:38.755138      33 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
2022/01/09 06:12:38 [ERROR] error syncing 'authn-manage': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/authn-manage": EOF, requeuing
W0109 06:12:38.757983      33 reflector.go:437] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: watch of *summary.SummarizedObject ended with: very short watch: pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Unexpected watch close - watch lasted less than a second and no items received
I0109 06:12:38.758533      33 trace.go:205] Trace[801323015]: "Reflector ListAndWatch" name:pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168 (09-Jan-2022 06:12:27.038) (total time: 11719ms):
Trace[801323015]: [11.719919369s] [11.719919369s] END
E0109 06:12:38.758565      33 reflector.go:139] pkg/mod/github.com/rancher/client-go@v0.21.0-rancher.1/tools/cache/reflector.go:168: Failed to watch *summary.SummarizedObject: failed to list *summary.SummarizedObject: Get "https://127.0.0.1:6443/apis/catalog.cattle.io/v1/apps?limit=500&resourceVersion=0&timeout=15m0s": dial tcp 127.0.0.1:6443: connect: connection refused
2022/01/09 06:12:38 [ERROR] error syncing 'admin': handler mgmt-auth-gr-controller: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/globalroles/admin": dial tcp 127.0.0.1:6443: connect: connection refused, requeuing
2022/01/09 06:12:38 [ERROR] error syncing 'persistentvolumeclaims-view': handler legacy-rt-cleaner: Put "https://127.0.0.1:6443/apis/management.cattle.io/v3/roletemplates/persistentvolumeclaims-view": dial tcp 127.0.0.1:6443: connect: connection refused, requeuing
2022/01/09 06:12:38 [FATAL] k3s exited with: exit status 255

Which docker version are you running

They are all current latest.

docker --version
Docker version 20.10.12, build e91ed57
$ docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
  scan: Docker Scan (Docker Inc., v0.12.0)

Server:
 Containers: 2
  Running: 1
  Paused: 0
  Stopped: 1
 Images: 3
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-92-generic
 Operating System: Ubuntu 20.04.3 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 976.7MiB
 Name: vagrant
 ID: HB2U:GW7I:6BRR:ONQN:EKKO:2XGN:L5QU:MGES:KKMR:G7JY:NOCI:6YHA
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Bill, Did some research with the hope that it might help.

Can you check out the steps mentioned here (just in case).
https://phoenixnap.com/kb/install-rancher-on-ubuntu