Docker not working after last update

Post Reply
malomehi
Posts: 14
Joined: Thu Feb 02, 2017 8:09 am
languages_spoken: english spanish
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Docker not working after last update

Unread post by malomehi » Tue Feb 12, 2019 4:45 am

Today I run an update in my odroid-c2 running Ubuntu Xenial.
As always:

Code: Select all

sudo apt-get update

Code: Select all

sudo apt-get full-upgrade
I noticed that the package docker.io got an update. It asked to re-start the docker service so I did.

After the update docker cannot run containers anymore and I do not know how to fix.

Code: Select all

odroid@odroid64: ~ $ sudo docker run hello-world
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:297: copying bootstrap data to pipe caused \"write init-p: broken pipe\"": unknown.

Code: Select all

odroid@odroid64: ~ $ sudo docker container ls -a
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS              PORTS               NAMES
9b985687a04a        hello-world         "/hello"            About a minute ago   Created                                 laughing_hugle
Is anyone experiencing the same issue? Any way to fix?

Extra info:

Code: Select all

odroid@odroid64: ~ $ sudo docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.4
 Git commit:        e68fc7a
 Built:             Fri Jan 25 14:37:11 2019
 OS/Arch:           linux/arm64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.4
  Git commit:       e68fc7a
  Built:            Thu Jan 24 10:56:33 2019
  OS/Arch:          linux/arm64
  Experimental:     false

Code: Select all

odroid@odroid64: ~ $ sudo docker info
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 1
Server Version: 18.06.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version:  (expected: 468a545b9edcd5932818eb9de8e72413e616e86e)
runc version: N/A (expected: 69663f0bd4b60df09991c08812a60108003fa340)
init version: v0.18.0 (expected: fec3683b971d9c3ef73f284f176672c44b448662)
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 3.14.79-117
Operating System: Ubuntu 16.04.5 LTS
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 1.677GiB
Name: odroid64
ID: RTFN:VMKO:OF43:TPAW:SQN7:4Z5Z:XP2X:5EMY:EK7D:UBQJ:6OYU:XK3E
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: malomehi
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

User avatar
tobetter
Posts: 3694
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: Docker not working after last update

Unread post by tobetter » Tue Feb 12, 2019 8:51 am

What if install docker-ce instead of docker-io? I had similar experience with docker.io and later swiched to docker-ce which is newer version.

malomehi
Posts: 14
Joined: Thu Feb 02, 2017 8:09 am
languages_spoken: english spanish
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Docker not working after last update

Unread post by malomehi » Tue Feb 12, 2019 8:56 am

Hi,

Thanks for the response. I tried with docker-ce and got the same result.
I finally found a solution. Posting here in case it helps somebody else.
I downloaded the binaries from https://download.docker.com/linux/stati ... 6.1-ce.tgz and replaced the files in /usr/bin/
For some reason the binaries are kind of corrupted during the installation. After replacing the binaries all seem to work ok again.

User avatar
tobetter
Posts: 3694
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: Docker not working after last update

Unread post by tobetter » Tue Feb 12, 2019 8:58 am

Wow, unexpected solution. Hahaha...anyway good to know.

나의 BBB100-1 의 Tapatalk에서 보냄


ayeshaMajeed
Posts: 3
Joined: Fri Feb 15, 2019 1:53 am
languages_spoken: english
ODROIDs: Odroid xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Docker not working after last update

Unread post by ayeshaMajeed » Fri Feb 15, 2019 1:57 am

I replaced the file from the link you mentioned but it's still not working. Any solution.

Thanks

malomehi
Posts: 14
Joined: Thu Feb 02, 2017 8:09 am
languages_spoken: english spanish
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Docker not working after last update

Unread post by malomehi » Sat Feb 16, 2019 11:26 pm

Hi,

First check you have docker installed:

Code: Select all

odroid@odroid64: ~ $ dpkg -l | grep docker
ii  docker.io                             18.06.1-0ubuntu1.2~16.04.1                   arm64        Linux container runtime
If not do:

Code: Select all

sudo apt-get update && sudo apt-get install docker.io
Then check the version:

Code: Select all

odroid@odroid64: ~ $ docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:20:38 2018
 OS/Arch:           linux/arm64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:27:20 2018
  OS/Arch:          linux/arm64
  Experimental:     false
In my case it is 18.06.1-ce
Find your version here: https://download.docker.com/linux/static/stable/
Extract the binaries from the file and replace them in /usr/bin
Do not forget to keep the same permissions, check before replacing:

Code: Select all

odroid@odroid64: ~ $ ls -lha /usr/bin/ | grep docker
-rwxr-xr-x  1 root root      35M feb 11 23:47 docker
-rwxr-xr-x  1 root root      24M feb 11 23:47 docker-containerd
-rwxr-xr-x  1 root root      13M feb 11 23:47 docker-containerd-ctr
-rwxr-xr-x  1 root root     3.9M feb 11 23:47 docker-containerd-shim
-rwxr-xr-x  1 root root      48M feb 11 23:47 dockerd
-rwxr-xr-x  1 root root     534K feb 11 23:47 docker-init
-rwxr-xr-x  1 root root     2.9M feb 11 23:47 docker-proxy
-rwxr-xr-x  1 root root     6.7M feb 11 23:47 docker-runc
That worked for me

Edited:
I noticed you have XU4 and not C2. It is possible you have 32 bits cpu and that might be the reason for the binaries not working.
Check your cpu architecture and then download the correct file.
There are many ways to check your cpu architecture, for example in Ubuntu:

Code: Select all

odroid@odroid64: ~ $ uname -a
Linux odroid64 3.14.79-117 #1 SMP PREEMPT Tue Jan 2 23:46:30 BRST 2018 aarch64 aarch64 aarch64 GNU/Linux
In my case I have an odroid-c2 so cpu is aarch64

ayeshaMajeed
Posts: 3
Joined: Fri Feb 15, 2019 1:53 am
languages_spoken: english
ODROIDs: Odroid xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Docker not working after last update

Unread post by ayeshaMajeed » Thu Feb 21, 2019 6:41 pm

Thank you so much.Will try this option

markephillips
Posts: 29
Joined: Fri Oct 26, 2018 11:39 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Docker not working after last update

Unread post by markephillips » Thu Feb 28, 2019 2:17 pm

I am having the same issue and the fix isn't working. Any help would be appreciated.

Code: Select all

Linux Cloudshell 3.10.105-141 #1 SMP PREEMPT Thu Jul 27 04:03:10 UTC 2017 armv7l armv7l armv7l GNU/Linux

Code: Select all

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

Code: Select all

Client: Docker Engine - Community
 Version:           18.09.2
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        6247962
 Built:             Sun Feb 10 04:13:46 2019
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.2
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       6247962
  Built:            Sun Feb 10 03:42:26 2019
  OS/Arch:          linux/arm
  Experimental:     false
Downloaded docker-18.09.2.tgz from
https://download.docker.com/linux/stati ... 8.09.2.tgz

Still same error?

User avatar
odroid
Site Admin
Posts: 31377
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 52 times
Been thanked: 184 times
Contact:

Re: Docker not working after last update

Unread post by odroid » Thu Feb 28, 2019 2:25 pm

@markephillips,
You are using a very old kernel 3.10 which could cause the docker compatibility issue.
Consider freshly flashing the latest Ubuntu 18.04 image which comes with LTS Kernel 4.14.

User avatar
tobetter
Posts: 3694
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: Docker not working after last update

Unread post by tobetter » Thu Feb 28, 2019 2:33 pm

In order to make sure if the running Kernel can serve Docker container, you can run this script and at least the items in "Generally Necessary" must be included or supported by driver module.
https://github.com/moby/moby/blob/maste ... -config.sh

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest