Getting Image name from a container

How can I get docker image id/name or tag from inside container

i do not believe there is any mechanism to do that. the runtime doesn’t know anything about being a container.

1 Like