Logo

Command Palette

Search for a command to run...

containers attach

Connect to a container (by container name) and print the STDOUT output stream of the container process. This is roughly equivalent to tailing the logs of a container.

If you need to connect to a container in order to execute commands, you should use the cx run command and specify the name of the container.

$ cx containers attach --stack <application name> <container ID>

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesName of your application
<container ID>yesThe ID of the container to be attached

Examples

$ cx containers attach -s mp-app 2844142c