docker 的一個小問題

在使用docker啓動mysql的時候碰到一個問題

 sudo docker rm d9e226e96a22f45775e40313494bf00cd29490d978aff125789c47b00442971b
d9e226e96a22f45775e40313494bf00cd29490d978aff125789c47b00442971b
chenwei@ubuntu1:~/mysql-image/conf/mysql.conf.d$ sudo docker run --name=mysql-latest -d mysql/mysql-server:latest --mount type=bind,src=/home/chenwei/mysql-image/conf/my.cnf,dst=/etc/my.cnf --mount type=bind,src=/home/chenwei/mysql-image/data,dst=/var/lib/mysql 
a4ed62d4ea5da84c14984056b4a3971eb843f5ab0bed914717f0a0e6af1cf90e
docker: Error response from daemon: docker-containerd-shim not installed on system.

感謝stackoverflow
說是containerd需要重啓

sudo systemctl restart containerd

於是mysql image 正常啓動了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章