# 更新后出现“Error response from daemon: OCI runtime create failed”错误

**URL:** <https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248>\
**Category:** Support\
**Created:** [2018年八月8日 21:03 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248 "2018-08-08T21:03:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![petro](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@petro](https://meta.discourse.org/u/petro)\
**Post date:** [2018年八月8日 21:03 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/1 "2018-08-08T21:03:01Z")

</div>

digital ocean, 2gb, 1cpu

i’ve done

```
cd /var/discourse/
./launcher rebuild app

```

and get this:

`/usr/bin/docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"invalid argument\"": unknown.`

what happened and how to fix it?

---

<div class="post-metadata">

**Author:** ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)\
**Post date:** [2018年八月8日 21:40 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/2 "2018-08-08T21:40:56Z")

</div>

Try with a `git pull` and then rebuild the app again.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年八月8日 21:41 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/3 "2018-08-08T21:41:41Z")

</div>

Docker isn’t functioning on your server – you’ll need to fix that before anything else.

---

<div class="post-metadata">

**Author:** ![petro](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@petro](https://meta.discourse.org/u/petro)\
**Post date:** [2018年八月13日 10:56 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/4 "2018-08-13T10:56:34Z")

</div>

i complete git pull and rebuild, but this is not help.

---

<div class="post-metadata">

**Author:** ![petro](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@petro](https://meta.discourse.org/u/petro)\
**Post date:** [2018年八月13日 10:59 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/5 "2018-08-13T10:59:06Z")

</div>

i was check docker (launch other image) - he is work fine.

maybe i wil get you anything logs?

---

<div class="post-metadata">

**Author:** ![jbf1212](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jbf1212](https://meta.discourse.org/u/jbf1212)\
**Post date:** [2018年十二月30日 19:10 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/6 "2018-12-30T19:10:37Z")

</div>

I’m running into this same issue while trying to rebuild on via digital ocean. The error seems to pop up at the very end of the rebuild. Did anybody ever find a solution here?

Might also be worth noting that I can’t run the following command as suggested in the instructions to update docker since the digital ocean console seemingly doesn’t allow you to write the ‘|’ symbol.  
`wget -qO- https://get.docker.com/ | sh`

Docker version: 18.09.0

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年十二月30日 19:26 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/7 "2018-12-30T19:26:58Z")

</div>

If you are getting that weird “error response from daemon” message then I can guarantee you that Docker isn’t set up right on your server, same as my earlier response in this topic.

---

<div class="post-metadata">

**Author:** ![jbf1212](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jbf1212](https://meta.discourse.org/u/jbf1212)\
**Post date:** [2018年十二月31日 09:51 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/8 "2018-12-31T09:51:33Z")

</div>

Thanks Jeff. I had a feeling it wasn’t a Discourse-specific error. Anyway, I realized that my hostname was too long! 😖 (See thread here: [https://github.com/opencontainers/runc/issues/1437](https://github.com/opencontainers/runc/issues/1437))

Anyway, just something to watch out for in the case people are using digital ocean. Especially if you are restoring an older droplet, in which case digital ocean will by default append a bunch of stuff to your hostname, which is what happened in my case.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年十二月31日 10:01 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/9 "2018-12-31T10:01:02Z")

</div>

That is very good to know!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十一月30日 13:55 UTC](https://meta.discourse.org/t/error-response-from-daemon-oci-runtime-create-failed-after-update/94248/10 "2021-11-30T13:55:11Z")

</div>


