Last active
October 18, 2025 04:15
-
-
Save 0xAungkon/26e0a9e94b6edb6feb9bc9c82e8aaa40 to your computer and use it in GitHub Desktop.
LXD Container Docker Permission Denied Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export CONTAINER_NAME 1panel | |
| echo "Setting container $CONTAINER_NAME as privileged and unconfined..." | |
| lxc config set "$CONTAINER_NAME" security.privileged true | |
| lxc config set "$CONTAINER_NAME" raw.lxc "lxc.apparmor.profile=unconfined" | |
| # Restart container | |
| echo "Restarting container $CONTAINER_NAME..." | |
| lxc restart "$CONTAINER_NAME" | |
| echo "Done. Docker should now work inside $CONTAINER_NAME." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment