描述:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:297: getting the final child's pid from pipe caused \"EOF\"": unknown.
ERRO[0103] error waiting for container: context canceled
原因:
可能是由於在WSL的環境下,WSL目前應該屬於WSL1,這並不是真正的Linux(大部分發行版帶的東西,可能WSL不帶,還要systemctl命令也不能用),大概到年底能發佈的WSL2纔是真正的把Linux內核整合到WIndows10中。目前看到的問題大部分都是WSL + Ubuntu + docker 18.x
解決:
把docker降低到穩定的17版本。(我是屬於激進派,結果老是撞得頭破血流)
卸載docker-ce
apt-get autoremove docker-ce
顯示穩定可使用版本
apt-cache madison docker-ce
安裝穩定版本
sudo apt-get install docker-ce=17.12.1~ce-0~ubuntu
然後繼續運行
目前也在學習中,如有不正確或者不到位的地方,敬請指正!