Security LXC - Best Practices

Hello

Is there an guide to best practices to security a container? I use version 4.0
What is the difference between privileged container and not privileged?

How I change a privileged container to not privileged?

Thanks

There are some notes in the documentation:
https://linuxcontainers.org/lxd/docs/master/security

Otherwise this was asked before, so you can search the forum for answers in the past.

By default containers are started unpriviledged.
Details here:
https://linuxcontainers.org/lxd/docs/master/security#container-security

Set the configuration key security.privileged to false and restart the container.

1 Like