我写了
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 ..