Win7 Oracle VM VirtualBox 虚拟机环境,CentOS7, Docker version 1.13.1, build 07f3374/1.13.1。
1.执行命令:docker run –name mysql01 -e MYSQL_ROOT_PASSWORD=123456 -d mysql
错误信息如下:
` /usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused “w
rite parent: broken pipe”. `
2.执行 docker ps , docker ps -a 显示信息如下:
3.添加映射端口,结果一样:
[root@localhost ~]# docker run -p 3306:3306 --name mysql02 -e MYSQL_ROOT_PASSWORD=123456 -d mysql
06c5f3009fa36f1e1677b32c0247954429c5bf5218914666d43b6186e0301011
/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "w
rite parent: broken pipe".
搜索了一些办法,目前未能解决。
[root@localhost ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-91.git07f3374.el7.centos.x86_64
Go version: go1.10.3
Git commit: 07f3374/1.13.1
Built: Wed Feb 13 17:10:12 2019
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-91.git07f3374.el7.centos.x86_64
Go version: go1.10.3
Git commit: 07f3374/1.13.1
Built: Wed Feb 13 17:10:12 2019
OS/Arch: linux/amd64
Experimental: false
================================================================
https://blog.csdn.net/weixin_…
这个方法有些效果。
vim /etc/containers/registries.conf
添加:’https://registry.docker-cn.com’
感谢各位!