Docker: copying bootstrap data to pipe caused "write init-p: broken pipe"

There are many topics here about docker problems with Centos. I’d search elsewhere for help in getting docker to work with Centos or switch to Ubuntu.

Client:
Version: 18.09.2
API version: 1.39
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:27 2019
OS/Arch: linux/amd64
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:47:25 2019
OS/Arch: linux/amd64
Experimental: false

1 Like

Just got a new server from Digital Ocean, running Ubuntu 18.04.2.

It comes with kernel 4.15.0-45-generic, and after running the docker install script I get Docker 18.09.2.

Running the Docker test goes fine:

root@ubuntu-c-2-4gib-sfo2-01:~# docker run --rm -i -a stdin -a stdout ubuntu echo 1
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
6cf436f81810: Pull complete 
987088a85b96: Pull complete 
b4624b3efe06: Pull complete 
d42beb8ded59: Pull complete 
Digest: sha256:7a47ccc3bbe8a451b500d2b53104868b46d60ee8f5b35a24b41a86077c650210
Status: Downloaded newer image for ubuntu:latest
1

So I can’t repro your problem. Do you have the same kernel version? (run uname -a)

2 Likes

uname -a returns this :

Linux forum 3.10.0-229.20.1.el7.centos.plus.x86_64 #1 SMP Wed Nov 4 01:06:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

I don’t think that is the correct year.

Anyway, you may want to refer do Docker docs on CentOS Get Docker Engine - Community for CentOS | Docker Documentation

Can you share your docker version and kernel version?

@Falco thanks for trying to help!

Docker version:
Client:
Version: 18.09.2
API version: 1.39
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:47 2019
OS/Arch: linux/amd64
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:13 2019
OS/Arch: linux/amd64
Experimental: false

Kernel:
4.15.0 #1 SMP Thu Aug 23 19:33:51 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux

I’m still not sure what exactly happened. I had everything running on exactly that machine two days ago. I think the docker update to 18.09.2 had something to do with it but don’t know.

Thanks and cheers
bgo

How are you in August already?

Do apt update; apt upgrade installs a new kernel?

Looks like you need 3.10.0-693.el7.x86_64 or newer in CentOS.

1 Like

I have tried apt update/upgrade before to no avail - everything’s up to date.

Also, the kernel is from August 23 2018, so it’s about half a year old.

Cheers
bgo

I have downgraded to docker 18.06.1 and everything works again.

This should not be necessary since I’m working on a brand new system with up to date kernel. I’m not sure what’s going on but I would like to understand.

how did you downgrade it please?

Thanks but do you have idea of how to get the 3.10.0-693.el7.x86_64 or newer in CentOS ?

docker info returns this :

docker info
Containers: 4
Running: 0
Paused: 0
Stopped: 4
Images: 29
Server Version: 18.09.2
Storage Driver: overlay
Backing Filesystem: extfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-229.20.1.el7.centos.plus.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 988.9MiB
Name: forum
ID: J3DK:SKYY:MG4X:6O6R:3RGG:2DNT:4KIM:T33L:2P3H:4QZF:KTIX:DKUN
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
WARNING: the overlay storage-driver is deprecated, and will be removed in a future release.

Well I’m on Ubuntu so I don’t think my commands will help you - but just for reference:

apt remove docker-ce docker-ce-cli
apt install docker-ce=18.06.1~ce~3-0~ubuntu

Maybe you can find information to help you downgrade here:
Get Docker Engine - Community for CentOS | Docker Documentation (link posted by @Falco before)
and here:
docker: Error response from daemon - Dirk Avery - Medium

It’s not a good fix but your container will probably run again.

Cheers
bgo

1 Like

Maybe Google “rpm install specific version”

People with docker issue, I highly recommend you open a mirror topic on https://forums.docker.com/ if none already exists.

Issues installing docker should be reported there so the docker team have better visibility and can offer more workarounds.

3 Likes

Tks my friend benjamin. Working fine.

1 Like

Downgrading the docker version should fix your problem:
apt install -y docker-ce=18.06.1~ce~3-0~ubuntu jq

2 Likes

Thank you @bgo , your solution saved my life :+1: