Reputation: 1608
I need to capture host's os-release
from inside the alpine docker container. If I directly run cp /etc/os-release /path/file
command inside the container, it copies the details of alpine linux. I also tried binding /etc to one of the container paths, but as /etc/os-release is a symlink, it could not fetch the actual OS details when I tried capturing it.
Is there any other ways that I can achieve this. Assume that the content of os-release may change due to an OS upgrade.
Upvotes: 0
Views: 94