A systemd container keeps its own journal, and I can read it from the host without logging in.
-M or --machine= connects to a running local container by name and shows its messages. It is meant for containers that systemd knows as machines, such as those started with systemd-nspawn, and machinectl list prints the names.
journalctl -M mycontainer -b
It is not the tool for Docker containers. Those write to their own logging driver, and docker logs is the way to read them.
Further reading: journalctl(1) manual page