How to update a lxc container

This document (7012207) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 11 Service Pack 2


A SUSE Linux Enterprise Server 11 SP2 is running one or more lxc containers.
While the host system receives several updates, the container does not get these updates as well.

Running e.g. zypper to update the container is not always successful.
Packages like udev, mkinitrd, mdadm and a few more fail to update as these try to create devicenodes which is not allowed in a container.


Stop the container and update it manually with zypper. Example:

container lxc1 needs to be updated:

# lxc-stop -n lxc1
# zypper --root /var/lib/lxc/lxc1/rootfs patch
# lxc-start -n lxc1

Noncritical packages that don't require creation of device nodes still can be updated while the container is running. For a full featured update within a Service Pack the container needs to be stopped.



This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7012207
  • Creation Date: 25-Apr-2013
  • Modified Date:28-Sep-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center