Using machinectl with docker containers

Solution Verified - Updated -

Issue

  • what about using host machinectl to inspect containers' internals? Does it work? So far I failed to succeed:
[root@host ~]# docker run -d --name test rhel7.3 init
94a58c9c53278170e276915a16cfff8f74160b1ce6331c633059f935ba9cabcd

[root@host ~]# machinectl status 94a58c9c53278170e276915a16cfff8f74160b1ce6331c633059f935ba9cabcd
Could not get path to machine: No machine '94a58c9c53278170e276915a16cfff8f74160b1ce6331c633059f935ba9cabcd' known

[root@host ~]# machinectl list
MACHINE CLASS SERVICE

0 machines listed.

Environment

  • Red Hat Enterprise Linux 7
  • docker
  • oci-register-machine

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content