Container tips and tricks: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
No edit summary
(Add categories: AI, Network, Reference)
Line 19: Line 19:
== References ==
== References ==
<references />
<references />
[[Category:AI]]
[[Category:Network]]
[[Category:Reference]]

Revision as of 00:55, 15 July 2026

Trace container segment fault

# journalctl --file=/var/log/journal/*/* --follow
Segmentation fault (core dumped)
[ 1673.697349] journalctl[PID]: segfault at...

# coredumpctl info <PID>

Find container root folder in host

# Get container root directory path
$ container_root=$(sudo docker inspect --format '{{.GraphDriver.Data.MergedDir}}' <container_id>)

# Then we can access by creating a symlink to any subdirectory or file within the container
$ sudo ln -s "$container_root/</path/to/mount>" <symlink_name>

References