我是 Docker 新手,我想弄清楚是否可以使用不同的参数多次运行应用程序。
我使用 .Net 开发了我的应用程序,到目前为止,我已经使用 Ubuntu 服务执行了所有实例,例如:
[Unit]
Description=swp %I
[Service]
Environment=ENV=PRODUCTION
Type=simple
User=foo
ExecStart=/usr/bin/dotnet /opt/swp/app.dll %i
WorkingDirectory=/opt/app
Restart=always
RestartSec=5
%I我启动服务时传递的参数在哪里,例如:
sudo systemctl start app@argument1.service
sudo systemctl start app@argument2.service
sudo systemctl start app@argument3.service
因此,根据提供的参数,我有三个以不同逻辑运行的应用程序实例。
如何使用 Docker 复制相同的内容?