# Automatic volume initialization like in Docker

**URL:** <https://community.fly.io/t/automatic-volume-initialization-like-in-docker/12791>\
**Category:** General\
**Tags:** wishlist, volumes, login-only\
**Created:** [May 9, 2023, 4:28pm UTC](https://community.fly.io/t/automatic-volume-initialization-like-in-docker/12791 "2023-05-09T16:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex21](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Alex21](https://community.fly.io/u/Alex21)\
**Post date:** [May 9, 2023, 4:28pm UTC](https://community.fly.io/t/automatic-volume-initialization-like-in-docker/12791/1 "2023-05-09T16:28:43Z")

</div>

In Docker Desktop, when you start a container with a not-yet-initialized volume, Docker [automatically initializes](https://docs.docker.com/storage/volumes/#populate-a-volume-using-a-container) that volume with the files that are in the container image at the directory path where the volume will be mounted.

[Fly.io](http://Fly.io) doesn’t do that, requiring the container’s entrypoint to [perform](https://fly.io/docs/laravel/the-basics/laravel-volume-storage/) such initialization.

Since [Fly.io](http://Fly.io) generally tries to create a UX that’s familiar to people who already know Docker, it would be great if [Fly.io](http://Fly.io) matched Docker’s behavior by also automatically initializing the volume like Docker does.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [May 16, 2023, 4:29pm UTC](https://community.fly.io/t/automatic-volume-initialization-like-in-docker/12791/2 "2023-05-16T16:29:13Z")

</div>

Closed on May 16, 2023, 4:29pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
