-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I'm not a docker pro and don't even want to build it from scratch so that's why I still wanted to use docker as an "easy" way to run the bot, however I'm having an issue.
I followed the instructions carefully, yet when I want to run the cmdlet to run the new docker, I'm having an error message and it wont run the container.
This is the problem.:
PS C:\Temp\DCBots\HGP\RSS\AnimeNews> docker run --name HGP-Anime-News -v "C:\Temp\DCBots\HGP\RSS\AnimeNews\appsettings.json:\app\config\appsettings.json" qolors/feedcord:latest
Unhandled exception. System.IO.FileNotFoundException: The configuration file 'config/appsettings.json' was not found and is not optional. The expected physical path was '/app/config/appsettings.json'.
at Microsoft.Extensions.Configuration.FileConfigurationProvider.HandleException(ExceptionDispatchInfo info)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at FeedCord.Startup.Initialize(String[] args) in /src/src/Startup.cs:line 26
at FeedCord.Program.Main(String[] args) in /src/src/Program.cs:line 7
PS C:\Temp\DCBots\HGP\RSS\AnimeNews>
Any idea?