简体   繁体   English

我如何让LaraDock使用yum而不是apt-get?

[英]How do I get LaraDock to use yum instead of apt-get?

I am trying to setup a container using laradock with the following command: 我正在尝试通过以下命令使用laradock设置容器:

docker-compose up -d nginx mysql

The problem is I am getting the following error: 问题是我遇到以下错误:

E: There were unauthenticated packages and -y was used without --allow-unauthenticated
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c apt-get update -yqq     && apt-get -yqq install nasm' returned a non-zero code: 100`

Is there a way to get it to use yum instead of apt-get? 有没有办法让它使用yum而不是apt-get?

(I'm a server noob, thought docker would be easy and it seems that it is. Just can't figure out why it's trying to use apt-get instead of yum. Thanks.) (我是服务器菜鸟,认为docker很简单,而且看起来确实如此。只是无法弄清楚为什么它试图使用apt-get而不是yum。谢谢。)

I suggest to read about the problems with different package system: Getting apt-get on an alpine container 我建议阅读有关不同包装系统的问题: 在高山容器上获得apt-get

Most official docker images are available with different version of Linux (alpine, debian, cent). 大多数官方docker镜像可用于不同版本的Linux(alpine,debian,cent)。 I would rather create a own Dockerfile and change "FROM x:y" than use different package systems. 我宁愿创建自己的Dockerfile并更改“ FROM x:y”,也不愿使用其他软件包系统。

But, read the linked comment. 但是,请阅读链接的注释。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM