Complete the Dockerfile to set the default command to run nginx.
CMD ["[1]"]
The CMD instruction sets the default command to run when the container starts. Here, nginx is the default command.
Complete the Dockerfile to set the default command to run python app.py using exec form.
CMD ["python", "[1]"]
The CMD uses exec form with python as the command and app.py as the argument to run the application.
Fix the error in this Dockerfile line to correctly set the default command to bash.
CMD [1]The CMD instruction in exec form requires the command and arguments inside brackets and quotes, like ["bash"].
Fill both blanks to set the default command to run node server.js in exec form.
CMD ["[1]", "[2]"]
npm instead of nodeThe CMD instruction uses exec form with node as the command and server.js as the argument.
Fill all four blanks to set the default command to run python3 -m http.server 8000 in exec form.
CMD ["[1]", "[2]", "[3]", "[4]"]
http.server module argumentpython instead of python3The CMD instruction in exec form requires each part as a separate argument: ["python3", "-m", "http.server", "8000"].