docs/current_docs/partials/cookbook/errors/_inspect-filesystem.mdx
The following Dagger Function clones Dagger's GitHub repository and opens an interactive terminal session to inspect it. Under the hood, this creates a new container (defaults to alpine) and starts a shell, mounting the repository directory inside.
The container created to mount the directory can be customized using additional options. The following Dagger Function revised the previous example to demonstrate this, using an ubuntu container image and bash shell instead of the defaults.
Execute a Dagger Function to clone Dagger's GitHub repository and open a terminal session in the repository directory:
<Tabs groupId="shell"> <TabItem value="System shell"> ```shell dagger -c simple-directory ``` </TabItem> <TabItem value="Dagger Shell"> ```shell title="First type 'dagger' for interactive mode." simple-directory ``` </TabItem> <TabItem value="Dagger CLI"> ```shell dagger call simple-directory ``` </TabItem> </Tabs>Execute another Dagger Function that does the same as the previous one, except using an ubuntu container image as base and initializing the terminal with the bash shell: