为什么Docker 中会出现这个错误?

为什么Docker 中会出现这个错误?

我正在尝试为我的硕士论文安装这个程序; https://github.com/gioargyr/docker-kr-suite但我不明白如何运行它。我已经克隆了它,然后按照 README 中提到的在终端中运行此命令;“[sudo] docker build -t docker-image-name 。”然后发生了这些错误。https://i.stack.imgur.com/3HOvO.jpg

您知道如何正确安装和运行该程序吗?

感谢您的帮助。

答案1

像这样 :

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce

要检查状态:

sudo systemctl status docker

可选:将 $USER 添加到 docker 组(确保之后注销并重新登录)

sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl restart docker

答案2

    # This file controls: which hosts are allowed to connect, how clients
# host       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostssl    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# hostnossl  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
# ADDRESS specifies the set of hosts the record matches.  It can be a
# host name, or it is made up of an IP address and a CIDR mask that is
# specifies the number of significant bits in the mask.  A host name
# that starts with a dot (.) matches a suffix of the actual host name.
# columns to specify the set of hosts.  Instead of a CIDR-address, you
# can write "samehost" to match any of the server's own IP addresses,
# "host" records.  In that case you will also need to make PostgreSQL
host    all             all             127.0.0.1/32            md5
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5
host     all     all     0.0.0.0/0   md5
#listen_addresses = 'localhost'     # what IP address(es) to listen on;
listen_addresses='*'
2019-04-08 17:22:57.038 UTC [13] LOG:  database system was shut down at 2019-04-08 17:08:00 UTC
2019-04-08 17:22:57.296 UTC [13] LOG:  MultiXact member wraparound protections are now enabled
2019-04-08 17:22:57.299 UTC [17] LOG:  autovacuum launcher started
2019-04-08 17:22:57.299 UTC [12] LOG:  database system is ready to accept connections

解决问题后,我运行“docker run”,并获取这些行。我该如何使用它,因为一旦我运行“ls”之类的命令,什么都没有发生。

相关内容