Docker 問題彙總(未完待續)

1、在docker環境下: docker

1.報錯:Server error: 404 trying to fetch remote history for ubuntu shell

docker pull ubuntu

解決辦法: ubuntu

sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"


2、在container環境中: socket

1.報錯: fetch

stop: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
spa

解決辦法: code

dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl                     
server


貌似這樣作以後仍是服務起不來,不知道爲何,執行service xxx start的時候沒反應,可是也不報錯。


2.報錯: rem

W: GPG error: http://debian.ustc.edu.cn quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 get

解決辦法:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys  3B4FE6ACC0B21F32
相關文章
相關標籤/搜索