edgexfoundry / edgex-compose

EdgeX Foundry Docker Compose release compose files and tools for building EdgeX compose files
Apache License 2.0
82 stars 119 forks source link

Add support for rootless docker environment #452

Closed jakeiotechsys closed 1 month ago

jakeiotechsys commented 1 month ago

🚀 Feature Request

Add support for running edgex in a rootless docker environment.

Relevant Package [REQUIRED]

This feature request changes vault, portainer and security-spire-config

Description [REQUIRED]

Vault container does some host system memory locking which isn't allowed in a rootless docker installation. The location of the docker socket changes in a rootless docker environment so the volume mapping for potainer and security-spire-config must change.

Describe the solution you'd like

Disable vault memory locking. Detect if the host is running in a rootless or rootful docker environment and change the host docker docket volume mapping as required when using Makefiles to run edgex.

Describe alternatives you've considered

No other solution