get docker resource usage 1

get docker resource usage

docker stats

Here is what the above code is Doing:
1. We’re creating a new Docker container using the image we just built.
2. We’re mounting the current directory (.) into the container at /app.
3. We’re setting the working directory to /app.
4. We’re exposing port 80 on the container to port 80 on localhost.
5. We’re running the command python app.py.

Similar Posts