带参数的Dockerfile入口点
我需要在ENTRYPOINT[…]上运行以下命令:带参数的Dockerfile入口点,docker,dockerfile,Docker,Dockerfile,我需要在ENTRYPOINT[…]上运行以下命令: dotnet reportgenerator -reports:coverage.cobertura.xml -targetdir:Reports -reportTypes:htmlInline 我该怎么做?你试过了吗 ENTRYPOINT ["dotnet", "reportgenerator", "-reports:coverage.cobertura.xml", "-targetdir:Reports", "-reportTypes:h
dotnet reportgenerator -reports:coverage.cobertura.xml -targetdir:Reports -reportTypes:htmlInline
我该怎么做?你试过了吗
ENTRYPOINT ["dotnet", "reportgenerator", "-reports:coverage.cobertura.xml", "-targetdir:Reports", "-reportTypes:htmlInline"]
你试过了吗
ENTRYPOINT ["dotnet", "reportgenerator", "-reports:coverage.cobertura.xml", "-targetdir:Reports", "-reportTypes:htmlInline"]
尝试入口点
:
ENTRYPOINT ["dotnet","reportgenerator","-reports:coverage.cobertura.xml","-targetdir:Reports","-reportTypes:htmlInline"]
除了execform
之外,还有shell表单,如下所示:
ENTRYPOINT command param1 param2
在ENTRYPOINT
数组中,应该包括稳定的默认(它们不被认为是可更改的)命令及其参数。然后,如果您希望设置更可能更改的其他默认值,请使用CMD
示例取自官员的文档链接:
FROM ubuntu
ENTRYPOINT ["top", "-b"]
CMD ["-c"]
尝试入口点
:
ENTRYPOINT ["dotnet","reportgenerator","-reports:coverage.cobertura.xml","-targetdir:Reports","-reportTypes:htmlInline"]
除了execform
之外,还有shell表单,如下所示:
ENTRYPOINT command param1 param2
在ENTRYPOINT
数组中,应该包括稳定的默认(它们不被认为是可更改的)命令及其参数。然后,如果您希望设置更可能更改的其他默认值,请使用CMD
示例取自官员的文档链接:
FROM ubuntu
ENTRYPOINT ["top", "-b"]
CMD ["-c"]
问题是什么?你解决问题了吗?问题是什么?你解决问题了吗?是的,这很有效。我一定是在阳光下尝试了其他一切。我还是不太明白ENTRYPOINT是怎么工作的是的,这个很有效。我一定是在阳光下尝试了其他一切。仍然不太明白ENTRYPOINT是如何工作的。