# Error running Docker containers on SD card

**URL:** https://www.wago.community/t/error-running-docker-containers-on-sd-card/283
**Category:** Hardware and Linux
**Tags:** edge-controller, docker
**Created:** [October 13, 2022, 2:31pm UTC](https://www.wago.community/t/error-running-docker-containers-on-sd-card/283 "2022-10-13T14:31:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)
#### Post date: [October 13, 2022, 2:31pm UTC](https://www.wago.community/t/error-running-docker-containers-on-sd-card/283/1 "2022-10-13T14:31:09Z")

</div>

Hi community,

I noticed a quiet new behavior that I noticed only on Edge controller and TP600.  
When I install Docker, and move it to SD card and try to deploy a container for the first time I get the following error :

```auto
docker: Error response from daemon: failed to create shim: OCI runtime create failed: /media/sd/docker/overlay2/97c47323d9dbcdf7618a4757b9eae7f223d95d5f3d7eb2fd0f76ef14676f381f/merged is not an absolute path or is a symlink: unknown.

```

It seems to have a link with the symbolic link …  
The restart of the docker daemon seems to solve the issue but I’d like to find the reason behind and a better way to solve it.

Thanks for your feedback.

---

<div class="post-metadata">

### Author: ![hoprodgarage](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/hoprodgarage/32/147_2.png) [@hoprodgarage](https://www.wago.community/u/hoprodgarage)
#### Post date: [October 13, 2022, 5:45pm UTC](https://www.wago.community/t/error-running-docker-containers-on-sd-card/283/2 "2022-10-13T17:45:29Z")

</div>

Did you move it by specifying the new data-root in the /etc/docker/daemon.json ?

---

<div class="post-metadata">

### Author: ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)
#### Post date: [October 14, 2022, 5:48am UTC](https://www.wago.community/t/error-running-docker-containers-on-sd-card/283/3 "2022-10-14T05:48:03Z")

</div>

Yes, exactly ! And then I restart the daemon. The sd card is previously formated in ext4.

---

<div class="post-metadata">

### Author: ![hoprodgarage](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/hoprodgarage/32/147_2.png) [@hoprodgarage](https://www.wago.community/u/hoprodgarage)
#### Post date: [October 14, 2022, 6:12am UTC](https://www.wago.community/t/error-running-docker-containers-on-sd-card/283/4 "2022-10-14T06:12:09Z")

</div>

Thats strange. I have seen that error if symlinks is used instead of updating the daemon.json.

This is the way I move the location of docker.

1. Stop the daemon
2. Add/create the daemon.json and add the new data-root location
3. rsync the old location to the new one
4. rename the old location (and deletes this when everything is confirmed OK)
5. Start the daemon

I haven’t tested this on a edge controller/TP600 though… so it could be that these acts differently.

---

<div class="post-metadata">

### Author: ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)
#### Post date: [October 18, 2022, 7:23am UTC](https://www.wago.community/t/error-running-docker-containers-on-sd-card/283/5 "2022-10-18T07:23:48Z")

</div>

I did a quick test. Did you allready have a docker mount, and SD card was allready formatted and mounted once… then formatted once again and/or changed the label. I think you have to update the mounts and not only restart the docker deamon. Maybe safer to reboot the controller. The “failed to create shim” error I also saw in these cases.
