Skip to content

Instantly share code, notes, and snippets.

@0xAungkon
Last active October 18, 2025 04:15
Show Gist options
  • Select an option

  • Save 0xAungkon/26e0a9e94b6edb6feb9bc9c82e8aaa40 to your computer and use it in GitHub Desktop.

Select an option

Save 0xAungkon/26e0a9e94b6edb6feb9bc9c82e8aaa40 to your computer and use it in GitHub Desktop.
LXD Container Docker Permission Denied Fix
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