A sample code block:
$ docker compose up -d
Let’s break this down real quick.
- $ indicates that you are to type this command as a non-root user into a shell prompt (not a Windows command prompt)
- docker is the command we’re running
- In this case, we’re telling docker to use its compose subsystem to bring a service up, and run it in the background (the -d part)
We could also see something like:
# systemctl status nginx
The breakdown:
- # indicates that you need a root shell to run this command (again, not a Windows command prompt)
- systemctl is the command we’re running
- Here, we’re asking for the status of the nginx daemon