Interview Questions…
-
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> -
execute some command into running container in bg!
docker exec <id/name> <command>eg:
docker exec -it abc sh/bashdocker exec -it abc pwd -
Which command should be used to show detailed information on Docker disk space usage?
docker system df –v