• Home
  • Docker
  • Kubernetes
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • CI
  • Install
  • Samples
  • Archived
Docker | Container Filesystem
  1. List the files of a Container

  1. Export the files of a Container
    To export the files of a container, use the command "docker export".

    Let's create a container and export its contents:

    If you check at the Dockerfile of the "hello-world" image (see bellow), you will notice that it only copy the "hello" file which is the only non-empty file in the container.

    The other files and directories in the container are mandatory and Docker will automatically bind-mount them from the Docker host.

© 2025  mtitek