# Issues with Docker Update Module

**URL:** <https://hub.mender.io/t/issues-with-docker-update-module/1059>\
**Category:** General Discussions\
**Created:** [April 3, 2019, 7:14am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059 "2019-04-03T07:14:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 3, 2019, 7:14am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/1 "2019-04-03T07:14:20Z")

</div>

Hi @Prakash and welcome to Mender Hub!

As it is, this Update Module does not support passing arguments to the container. However, it is pretty easy to create a new module based on this one that could achieve that.

Have a look at the Docker Update Module and generator source code (links in table above) for inspiration. One possibility could be to pass the parameters as an extra field in the meta-data contained in the Mender Artifact.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [May 22, 2019, 7:05am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/2 "2019-05-22T07:05:00Z")

</div>

Hi IIuiscampos  
I am trying build mender artifact for hello-world docker image…  
ARTIFACT\_NAME=“my-container-update-1.0”  
DEVICE\_TYPE=“solidrun”  
OUTPUT\_PATH=my-container-update-1.0.mender  
DOCKER\_IMAGES=“hello-world”  
Hope my DOCKER\_IMAGES is correct…

./docker-artifact-gen -n {ARTIFACT\_NAME} -t {DEVICE\_TYPE} -o {OUTPUT\_PATH} {DOCKER\_IMAGES}  
Using default tag: latest  
latest: Pulling from library/hello-world  
Digest: sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc  
Status: Image is up to date for hello-world:latest  
**No help topic for 'module-image’**  
I see meta-data.json only in my directory

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [May 22, 2019, 7:39am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/3 "2019-05-22T07:39:18Z")

</div>

Are you using the latest mender-artifact tool v3.0.0? Make sure you  
download the latest one from  
[https://docs.mender.io/2.0/artifacts/modifying-a-mender-artifact#prerequisites](https://docs.mender.io/2.0/artifacts/modifying-a-mender-artifact#prerequisites)  
and install it in your path.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [May 22, 2019, 9:48am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/4 "2019-05-22T09:48:10Z")

</div>

Thank you… Now ./docker-artifact-gen able to create the my-container-update-1.0.mender…

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [May 22, 2019, 10:09am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/5 "2019-05-22T10:09:35Z")

</div>

Mender Management server for production throwing following error, When i was trying to upload the Artifact…  
Seems to be My mender server not supporting version 3…

Artifact couldn’t be uploaded. unsupported version: 3; supported versions are: 1, 2 [Request ID: 3f00876f]

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [May 22, 2019, 12:12pm UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/6 "2019-05-22T12:12:43Z")

</div>

Looks like you are not running 2.0.0 version of the server.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [May 23, 2019, 1:05pm UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/7 "2019-05-23T13:05:32Z")

</div>

My Mender Server version : 2.0  
Mender-artifact tool version : 3.0  
I created the mender artifact for Hello-world docker image with Mender-artifact 3.0 tool. But when I want to deploy above docker image to device, mender client on the device throwing below error. I think there is version mismatch …  
My meta-mender version is thud-v2019.02-4-gdb6b761

May 23 12:54:37 imx6 mender[743]: level=error msg=“update install failed: installer: failed to read and install update: reader: unsupported version: 3” module=state  
May 23 12:54:37 imx6 mender[743]: level=info msg=“State transition: update-store [Download] -\> fetch-install-retry-wait [Download]” module=mender

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [May 23, 2019, 1:08pm UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/8 "2019-05-23T13:08:16Z")

</div>

It seems that you are not running Mender client 2.0.0,

It is not the default and you have to actively enable that version, take a look here

[https://hub.mender.io/t/mender-2-0-released-extending-update-capability/536/15](https://hub.mender.io/t/mender-2-0-released-extending-update-capability/536/15)

for more information

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [May 24, 2019, 5:07pm UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/9 "2019-05-24T17:07:21Z")

</div>

I updated thud branch and now the version is thud-v2019.05-2-gae00ee7 and added below stuff in local.conf and i see mender\_client 2.0.0 in logs from my device…

```auto
PREFERRED_VERSION_pn-mender = "2.%"
PREFERRED_VERSION_pn-mender-artifact = "3.%"
PREFERRED_VERSION_pn-mender-artifact-native = "3.%"

```

1. Now I created mender artifact for hello-world docker and uploaded this artifact i.e **my-container-update-1.0** into server.This artifact size is 6kb and showing its type as rootfs-image in the server.
2. Downloaded the docker updated module in device @ /usr/share/mender/modules/v3.
3. After downloading this artifact into device, the device is getting rebooted and inventory shows current software as **my-container-update-1.0**.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [May 31, 2019, 6:16am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/10 "2019-05-31T06:16:18Z")

</div>

> [@Docker](https://hub.mender.io/t/docker/324/11):
>
> - I have created mender artifact for hello-world docker and uploaded this artifact i.e **my-container-update-1.0** into server.This artifact size is 6kb and showing its type as rootfs-image in the server.
> - Downloaded the docker updated module in device @ /usr/share/mender/modules/v3.
> - After downloading this artifact into device, the device is getting rebooted and inventory data on the server shows current software as **my-container-update-1.0**

Why the board is rebooting when we download the application software image on to device?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [May 31, 2019, 7:51am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/11 "2019-05-31T07:51:26Z")

</div>

> Why the board is rebooting when we download the application software image on to device?

Unclear, the [Docker update module](https://github.com/mendersoftware/mender/blob/master/support/modules/docker) does not do a reboot, is it possible that it is triggered by something else?

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [June 3, 2019, 6:58am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/12 "2019-06-03T06:58:24Z")

</div>

Hope below steps i followed are correct… Initially my docker is not running on the board and board have a /usr/share/module/v3/docker script…

- I have created mender artifact for hello-world docker and uploaded this artifact i.e **my-container-update-1.0** into server.This artifact size is 6kb and showing its type as rootfs-image in the server.
- Downloaded the docker updated module in device @ /usr/share/mender/modules/v3.
- After downloading this artifact into device, the device is getting rebooted and inventory data on the server shows current software as **my-container-update-1.0**

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [June 3, 2019, 8:50am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/13 "2019-06-03T08:50:19Z")

</div>

> [@Docker](https://hub.mender.io/t/docker/324/14):
>
> I have created mender artifact for hello-world docker and uploaded this artifact i.e **my-container-update-1.0** into server.This artifact size is 6kb and showing its type as rootfs-image in the server.

Hi @ramu,

How are you creating the Artifact? Using the `docker-artifact-get` script the resulting Artifact must be `module-image`, not `rootfs-image`. Can you copy here the commands you are using to create the Artifact?

I think that somehow you are creating a `rootfs-image` Artifact probably containing only the Docker metadata (6kb?), but then the device will try to install it as if it was an actual full image update.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [June 3, 2019, 9:03am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/14 "2019-06-03T09:03:26Z")

</div>

Exported below stuff…  
ARTIFACT\_NAME=“my-container-update-1.0”  
DEVICE\_TYPE=“imx6”  
OUTPUT\_PATH=my-container-update-1.0.mender  
DOCKER\_IMAGES=“hello-world”

./docker-artifact-gen -n {ARTIFACT\_NAME} -t {DEVICE\_TYPE} -o {OUTPUT\_PATH} {DOCKER\_IMAGES}  
Using default tag: latest  
latest: Pulling from library/hello-world  
Digest: sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc  
Status: Image is up to date for hello-world:latest

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [June 3, 2019, 9:13am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/15 "2019-06-03T09:13:06Z")

</div>

Thanks. Okey, so what is the output of: `mender-artifact read my-container-update-1.0.mender` ? It cannot be `rootfs-image`.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [June 3, 2019, 9:20am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/16 "2019-06-03T09:20:58Z")

</div>

Iam seeing type as “rootfs-image” under “Releases” link on the mender server page running on my laptop…

Here is the o/p of "mender-artifact read " …

```auto
~/workspace/mender/mender-artifact read my-container-update-1.0.mender
Mender artifact:
  Name: my-container-update-1.0
  Format: mender
  Version: 3
  Signature: no signature
  Compatible devices: '[tcs-imx6]'
  Provides group: 
  Depends on one of artifact(s): []
  Depends on one of group(s): []
  State scripts:

Updates:
    0:
    Type: docker
    Provides: Nothing
    Depends: Nothing
    Metadata:
	{
	  "containers": [
	    "hello-world@sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc"
	  ]
	}

```

But signed mender artifact giving following o/p …

```auto
~/workspace/mender/mender-artifact read my-container-update-1.0-sign.mender 
Mender artifact:
  Name: my-container-update-1.0
  Format: mender
  Version: 3
  Signature: signed; verification using provided key failed
  Compatible devices: '[tcs-imx6]'
  Provides group: 
  Depends on one of artifact(s): []
  Depends on one of group(s): []
  State scripts:

Updates:
    0:
    **Type: rootfs-image**
    Provides: Nothing
    Depends: Nothing
    Metadata: Nothing
    Files:
      name: mender-repack287398683
      size: 0
      modified: 2019-05-22 15:31:52 +0530 IST
      checksum: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

```

Edit: @mirzak: prettify output

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [June 3, 2019, 12:08pm UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/17 "2019-06-03T12:08:55Z")

</div>

> [@Docker](https://hub.mender.io/t/docker/324/18):
>
> But signed mender artifact giving following o/p …

Okey! Now I understand it.

We have a bug that does not allow signing module-image artifacts, see [MEN-2573](https://tracker.mender.io/browse/MEN-2573). Try [this workaround](https://hub.mender.io/t/directory/325/7) suggested by @kacf .

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [June 4, 2019, 7:03am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/18 "2019-06-04T07:03:06Z")

</div>

Thank you…  
I have tried with out signing the mender articraft for hello-world docker… Now **Docker Update module**  
able to download and start the docker. But mender server showing the current software for device as  
**my-container-update-1.0** (This is docker release) …

I will try with signed one now…

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [June 4, 2019, 8:52am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/19 "2019-06-04T08:52:03Z")

</div>

> [@Docker](https://hub.mender.io/t/docker/324/20):
>
> But mender server showing the current software for device as  
> **my-container-update-1.0** (This is docker release) …

That is expected. The “current software” reports the last Artifact installed in the device.

---

<div class="post-metadata">

**Author:** ![ramu](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@ramu](https://hub.mender.io/u/ramu)\
**Post date:** [June 4, 2019, 9:05am UTC](https://hub.mender.io/t/issues-with-docker-update-module/1059/20 "2019-06-04T09:05:48Z")

</div>

But it suppose to show the rootfs-image version right??

[Next page](https://hub.mender.io/t/issues-with-docker-update-module/1059.md?page=2)
