Logo

Command Palette

Search for a command to run...

containers restart

Restarts a particular container on a given stack by container ID or name (supports partial IDs and names).

$ cx containers restart --stack <application name> <container ID>|<container name>

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesName of your application
<container ID>either\orThe ID of the container to restart
<container name>either\orThe name of the container to restart

Examples

$ cx containers restart -s mystack 2844142cbfc064123777b6be765b3914e43a9e083afce4e4348b5979127c220c
$ cx containers restart -s mystack 2844142c
$ cx containers restart -s mystack web.pro-active-quick-witted-dinosaur
$ cx containers restart -s mystack web