Container tips and tricks: Difference between revisions
Jump to navigation
Jump to search
(Created page with " == Find container root folder in host == <syntaxhighlight lang="bash"> # 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> </syntaxhighlight> == References == <references />") |
No edit summary |
||
Line 1: | Line 1: | ||
== Trace container segment fault == | |||
<syntaxhighlight lang="bash"> | |||
# journalctl --file=/var/log/journal/*/* --follow | |||
Segmentation fault (core dumped) | |||
[ 1673.697349] journalctl[PID]: segfault at... | |||
# coredumpctl info <PID> | |||
</syntaxhighlight> | |||
== Find container root folder in host == | == Find container root folder in host == |
Latest revision as of 08:32, 13 May 2024
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>