Skip to content

Commit

Permalink
Added workaround documentation for importing containers with sockets.
Browse files Browse the repository at this point in the history
- Workaround for warewulf#892

Signed-off-by: Jonathon Anderson <[email protected]>
  • Loading branch information
anderbubble committed Sep 27, 2024
1 parent c0c93b1 commit 1dc8b46
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Added `--syncuser` flag to `wwctl container shell`. #1358
- Added a troubleshooting guide. #1234
- Added workaround documentation for importing containers with sockets. #892

### Changed

Expand Down
36 changes: 34 additions & 2 deletions userdocs/contents/containers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ directly.
$ apptainer build --sandbox ./rockylinux-8/ docker://ghcr.io/warewulf/warewulf-rockylinux:8
$ sudo wwctl container import ./rockylinux-8/ rockylinux-8
.. note::

If a source directory includes persistent sockets, these sockets may cause the import operation to fail.

.. code-block::
Copying sources...
ERROR : could not import image: lchown ./rockylinux-8/run/user/0/gnupg/d.kg8ijih5tq41ixoeag4p1qup/S.gpg-agent: no such file or directory
To resolve this, remove the sockets from the source directory.

.. code-block:: bash
find ./rockylinux-8/ -type s -delete
HTTP proxies
------------

Expand Down Expand Up @@ -382,7 +397,8 @@ issues in most circumstances:
your system BIOS or firmware.

Duplicating a container
============================
=======================

It is possible to duplicate an installed image by using :

.. code-block:: console
Expand All @@ -391,8 +407,24 @@ It is possible to duplicate an installed image by using :
This kind of duplication can be useful if you are looking for canary tests.

.. note::

If a source container includes persistent sockets, these sockets may cause the copy operation to fail.

.. code-block::
Copying sources...
ERROR : could not duplicate image: lchown /var/lib/warewulf/chroots/rocky-8/rootfs/run/user/0/gnupg/d.kg8ijih5tq41ixoeag4p1qup/S.gpg-agent: no such file or directory
To resolve this, remove the sockets from the source container.

.. code-block:: bash
find $(wwctl container show rocky-8) -type s -delete
Multi-arch container management
============================
===============================

It is possible to build, edit, and provision containers of different
architectures (i.e. aarch64) from an x86_64 host by using QEMU. Simply
run the appropriate command below based on your container management tools.
Expand Down

0 comments on commit 1dc8b46

Please sign in to comment.