# Error when convert container image

**URL:** https://hub.mender.io/t/error-when-convert-container-image/2622
**Category:** General Discussions
**Created:** [October 6, 2020, 10:45am UTC](https://hub.mender.io/t/error-when-convert-container-image/2622 "2020-10-06T10:45:13Z")
**Posts on this page:** 1
**Showing post:** 35

<div class="post-metadata">

### Author: ![M.Tuan](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@M.Tuan](https://hub.mender.io/u/M.Tuan)
#### Post date: [October 20, 2020, 4:49am UTC](https://hub.mender.io/t/error-when-convert-container-image/2622/35 "2020-10-20T04:49:41Z")

</div>

So I need 3 machine right?

- 1 to create golden image
- 1 to install mender-convert
- 1 is the target machine

But I have a few question:  
I have 2 .mender files which one I can use to upload to [hosted.mender.io](http://hosted.mender.io)?

> 1 is _artifact\_debian9\_nginx\_01-x86\_64-mender.mender_ created with
> 
> > $ mender-artifact write rootfs-image   
> > -t genericx86\_64   
> > -n debian9\_nginx\_01   
> > -f debian9\_nginx\_01-x86\_64-mender.ext4   
> > -o artifact\_debian9\_nginx\_01-x86\_64-mender.mender
> 
> 1 is _debian9\_nginx\_01-x86\_64-mender.mender_ created with
> 
> > $ MENDER\_ARTIFACT\_NAME=debian9\_nginx\_release\_01 ./docker-mender-convert   
> > –disk-image input/debian9\_nginx\_01.img   
> > –config configs/generic\_x86-64\_hdd\_config   
> > –overlay rootfs\_overlay\_demo/

After I use mender-convert, there is only 4 files, there is no .sdimg file, but I only need the _debian9\_nginx\_01-x86\_64-mender.ext4_ to flash the target machine and I’m good to go right?

> ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/ff9456d07ef91959926824daefd6734c7b50bc74.png)
> 
> ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/6a9d802b9c1f7c88f49eb19594c08831b5b734de.png)

But I’m using Debian, in Debian it doesn’t have live system like Ubuntu (like this [INTEL NUC x86-64 Ubuntu 18.04](https://hub.mender.io/t/intel-nuc-x86-64-ubuntu-18-04/2214)), can I copy _debian9\_nginx\_01-x86\_64-mender.ext4_ to a USB Flash Drive, plug it in the target machine and flash it from there?

And after I’ve flashed the targer machine, I’ll have a Device connect to [hosted.mender.io](http://hosted.mender.io) right?

And I can now use 1 of the 2 .mender file to create a deployment from mender right?

---

_[View the full topic](https://hub.mender.io/t/error-when-convert-container-image/2622)._
