# Switch from docker-ce to balena-engine

**URL:** <https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090>\
**Category:** balenaEngine\
**Created:** [December 20, 2022, 8:18am UTC](https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090 "2022-12-20T08:18:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artur](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Artur](https://forums.balena.io/u/Artur)\
**Post date:** [December 20, 2022, 8:18am UTC](https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090/1 "2022-12-20T08:18:15Z")

</div>

Is it possible to switch from docker-ce to balena-engine and reuse the already pulled images and autorun docker-containers?

---

<div class="post-metadata">

**Author:** ![ramirogm](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@ramirogm](https://forums.balena.io/u/ramirogm)\
**Post date:** [December 22, 2022, 3:55pm UTC](https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090/6 "2022-12-22T15:55:44Z")

</div>

Hi @artur  
I’ll try to give a generic answer, I’m not sure I undertand the question completely. Maybe could you explain a bit more about your use case, what are you trying to achieve?

balena-engine uses docker images, so it can run the same images. When you install balenaOS it replaces the existing OS, so usually using “already pulled images” (copies) would not be possible out of the box.

If you can provide a bit more context then that’d be helpful

Thanks, Ramiro

---

<div class="post-metadata">

**Author:** ![lmbarros](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lmbarros/32/5710_2.png) [@lmbarros](https://forums.balena.io/u/lmbarros)\
**Post date:** [January 4, 2023, 9:58pm UTC](https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090/9 "2023-01-04T21:58:13Z")

</div>

Hi @artur! Did our previous response help with your question? If not, could you please share a bit more context about your use case? Thanks!

---

<div class="post-metadata">

**Author:** ![Artur](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Artur](https://forums.balena.io/u/Artur)\
**Post date:** [January 5, 2023, 6:13am UTC](https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090/11 "2023-01-05T06:13:15Z")

</div>

Hi. I’m using yocto to create our own OS. Be used the docker receipes before, but I was interessted in using balena-engine instead. Therefore I just copied the receipes from meta-balena. I could build it and could also use belana-engine, but on each start the images where removed. I found by myself, that the engine tried to migrate from aufs to overlayfs2, but failed. I disabled the migration and since then the image remains. I didn’t try to run docker on that images, but I assume the migration was the fault.

---

<div class="post-metadata">

**Author:** ![cywang117](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cywang117/32/6307_2.png) [@cywang117](https://forums.balena.io/u/cywang117)\
**Post date:** [January 5, 2023, 11:33pm UTC](https://forums.balena.io/t/switch-from-docker-ce-to-balena-engine/366090/12 "2023-01-05T23:33:18Z")

</div>

Hi @artur,

Thanks for the additional details. Do you have any error logs from the failed aufs to overlay2 migration? aufs is considered a legacy storage driver by both Docker and balenaEngine, so I wouldn’t recommend staying on it going forward. Of course, we may not be able to help since we don’t know the particulars of your custom OS, but the error messages may serve to help others on the forum if anyone encounters a migration failure in the future.

Thanks,  
Christina
