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.
Options
Argument | Required? | Default | Description |
---|---|---|---|
--stack, -s <application name> | yes | — | Name of your application |
<container ID> | yes | — | The ID of the container to be attached |