Skip to content

Interview Questions…

  1. Assume you have a running container and want to copy some file from that container to host machine…

    docker cp <container_name_or_id>:<container_path> <host_path>

  2. execute some command into running container in bg!

    docker exec <id/name> <command>

    eg:

    docker exec -it abc sh/bash

    docker exec -it abc pwd

  3. Which command should be used to show detailed information on Docker disk space usage? docker system df –v