由于前置不足问题而无法建立docker映像

时间:2019-09-15 17:34:59

标签: docker

我正在尝试为工作设置docker映像,但是我遇到libssl1.0.0的问题。当我运行docker-compose build时,这是我返回的输出

 ---> Running in 1d506ae8e916
dpkg: regarding libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb containing libssl1.0.0:amd64, pre-dependency problem:
 libssl1.0.0 pre-depends on multiarch-support
  multiarch-support is not installed.

dpkg: error processing archive libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb (--install):
 pre-dependency problem - not installing libssl1.0.0:amd64
Selecting previously unselected package libssl1.0.0:amd64.
Errors were encountered while processing:
 libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb
ERROR: Service 'app' failed to build: The command '/bin/sh -c dpkg -i libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb' returned a non-zero code: 

我已经安装了mutliarch-support,甚至sudo apt-get remove multiarch-support并重新安装了它。与libssl1.0.0相同,我什至删除了libssl1.1.0

1 个答案:

答案 0 :(得分:0)

您需要映像中的软件包而不是主机中的软件包。在发出错误的命令之前的一个RUN命令中安装multiarch-support。