如何在Powershell中使用apt-get?

时间:2019-06-16 16:26:09

标签: docker dockerfile

我写了

FROM mongo:3
RUN apt-get update -q  && apt-get dist-upgrade -y && apt-get  clean && apt-get autoclean 
崇高。我想要docker build -t db。

但是我有错误。

我在Powershell中出错:

 $ErrorActionPreference = 'Stop'; apt-get update -q && apt-get dist-up ...
+                                                    ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:79
+ ... nce = 'Stop'; apt-get update -q && apt-get dist-upgrade -y && apt-get ...
+                                                                ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:96
+ ... -get update -q && apt-get dist-upgrade -y && apt-get clean && apt-get ..

0 个答案:

没有答案