Linux 管理者は、コンテナ内で実行されている障害のあるアプリケーションを分析する必要があります。 Linux 管理者が実行中のコンテナに入り、内部に保存されているログを分析できるようにするには、次のコマンドのうちどれを使用しますか?
正解:B
Podman exec -ti app /bin/sh allows the Linux administrator to enter the running container and analyze the logs that are stored inside. This command uses the podman tool, which is a daemonless container engine that can run and manage containers on Linux systems. The exec option executes a command inside an existing container, in this case app, which is the name of the container that runs the failing application. The -ti option allocates a pseudo-TTY and keeps STDIN open, allowing for interactive shell access to the container. The /bin/sh argument specifies the shell command to run inside the container, which can be used to view and manipulate the log files.