Complete the command to run a Docker container that always restarts.
docker run --restart=[1] nginxThe --restart=always policy makes Docker restart the container whenever it stops.
Complete the command to restart a container only if it exits with an error.
docker run --restart=[1] myappThe on-failure policy restarts the container only if it exits with a non-zero status (an error).
Fix the error in the command to restart a container unless it is stopped manually.
docker run --restart=[1] myserviceThe unless-stopped policy restarts the container unless it was stopped by the user.
Fill both blanks to create a restart policy that restarts on failure but only up to 3 times.
docker run --restart=[1]:[2] app
The on-failure:3 policy restarts the container up to 3 times if it fails.
Fill all three blanks to create a Docker run command that restarts always, names the container 'web', and runs in detached mode.
docker run --restart=[1] --name=[2] -[3] nginx
This command restarts the container always, names it 'web', and runs it in detached mode with '-d'.