🦲
mind
  • cleber's mind
  • plans
    • fact checking
    • personal assistant
  • self-management
    • agenda and tasks
    • mails and emails
  • knowledge
    • career
    • programming
      • Big O Notation
      • browsing data
      • C/C++
      • databases
      • eclipse
      • gradle
      • java
        • apache camel
      • javascript
      • naming convention
      • mysql
      • prolog
      • regex
      • REST
      • ssl/tls
      • version control
        • git commands
      • web-semantics
      • wot
    • research
      • mas
      • planning
      • math
        • probability
      • machine learning
      • nlp
      • speech recognition
      • data sources
      • data visualisation
    • it
      • asterisk
      • containers
        • installing docker
        • deploying busybox
        • deploying a sample
        • deploying node-red
        • deploying from the hub
      • clusters
        • installing kubernetes
        • deploying bootcamp
        • deploying nginx
        • deploying jacamo-rest
        • grafana
      • deploy
        • heroku
      • linux
        • tmux
        • vim
        • startup
      • networks
      • pdf
        • ssh
    • productivity
    • language
      • expressions
        • nice signposts
        • linking expressions
      • latex
      • scientific
      • writing
    • sailing
    • financial
      • assets
    • emergency
    • out of boxes
  • teaching
    • eletrônica digital
      • Conversão decimal para binário
      • Conversão binário para decimal
      • Sinais analógicos vs digitais
    • programação I
    • cabeamento estruturado
  • moments
    • insightful ai facts
    • ai4industry-hackathon
    • previous activities
  • brasil
  • external links
    • personal webpage
    • my github
Powered by GitBook
On this page
  • Post-installation steps for linux
  • Testing docker
  • Docker useful commands (run)
  • Troubleshooting
  • Starting, restarting and stopping docker

Was this helpful?

  1. knowledge
  2. it
  3. containers

installing docker

Post-installation steps for linux

  • Create a docker group $ sudo groupadd docker

  • Add your user to docker group $ sudo usermod -aG docker $USER

  • Log again $ su - $USER

Testing docker

  • Run hello-world application $ sudo docker run hello-world

  • Docker version $ docker version

  • Docker system's general information $ docker info

  • Docker list of running containers $ docker ps

    • Status of running containers $ docker stats

  • Docker list of all containers $ docker ps -a

Docker useful commands (run)

  • Dettach terminal -d

  • Forward port -p host_port:container_port

  • Set workdir -w /path/to/app

Troubleshooting

  • Check docker service status $ sudo service docker status or $ sudo journalctl -fu docker

  • Check if docker container daemon is running $ ps -ax | grep docker

  • Show docker images $ sudo docker images

  • Inspecting an image $ sudo docker image inspect image_id

  • a more extreme action can be $ sudo rm -rf /var/lib/docker

Starting, restarting and stopping docker

  • Start $ sudo service docker start or systemctl start docker.service

  • Restart $ sudo service docker restart

  • Stop $ sudo service docker stop

PreviouscontainersNextdeploying busybox

Last updated 4 years ago

Was this helpful?