| Command for starting a container | This command is used for starting a container |
docker container start nginx |
|---|
| Command for stopping a container | This command is used for stopping a container |
docker container stop nginx |
|---|
| Command for restarting the container | This command is used for restarting a container |
docker container restart nginx |
|---|
| Command for pausing the container | This command is used for pausing a container |
docker container pause nginx |
|---|
| Command for unpausing the container | This command is used for unpausing a container in the docker |
docker container unpause nginx |
|---|
| Command for Blocking a container | This command is used for blocking a container in the docker |
docker container wait nginx |
|---|
| Sending a SIGKILL | This command is used for Sending a SIGKILL in the docker |
docker container kill nginx |
|---|
| Command for sending another signal | This command is used for for sending another signal |
docker container kill -s HUP nginx |
|---|
| Command for Connecting to an Existing Container | We can use this command for Command for Connecting to an Existing Container |
docker container attach nginx |
|---|