I'm new to Docker and I'm trying to figure out if is possible to run an application multiple times using different argument.
I developed my application using .Net, and so far I've executed all the instances using Ubuntu service like:
[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
Where %I
is the argument which I pass when I start the service like:
sudo systemctl start app@argument1.service
sudo systemctl start app@argument2.service
sudo systemctl start app@argument3.service
So I have three instances of the application which run with different logic, based on the argument provided.
How can I replicate the same using Docker?