Select Page
  1. How to show parameters of running images:
    sudo docker inspect  -f "{{.Path}} ({{.Id}}) {{json .Config}}" $(sudo docker ps -a -q)

    – command shows all parameters of each container in json format

  2. Show messages from container start/ stop:
    sudo docker events
  3. Show log error messages:
    sudo docker logs containerid
  4. If you need to install some packages in Dockerfile, you must use commands with “-qq” because container does not have any apt cache and make it in one RUN command:
    apt-get -qq update && apt-get -qq dist-upgrade -y && apt-get -qq install lsb-release curl git -y