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

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

    Let's create a container and list its contents:

    If you look at the Dockerfile of the "hello-world" image:

    You can see 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.
© 2010-2022  mtitek