{"id":20862979,"url":"https://github.com/ymasaoka/docker-dotnetcore","last_synced_at":"2026-04-05T22:05:20.923Z","repository":{"id":124796264,"uuid":"290592727","full_name":"ymasaoka/docker-dotnetcore","owner":"ymasaoka","description":"Provides docker-compose.yaml to launch a Docker container for .NET Core.","archived":false,"fork":false,"pushed_at":"2022-05-28T13:52:57.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T08:15:10.038Z","etag":null,"topics":["asp-net-core","docker","docker-compose","docker-dotnetcore","dotnet","dotnet-core","dotnetcore"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ymasaoka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-26T20:00:36.000Z","updated_at":"2022-05-28T13:53:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b448fd6-9f1c-4044-890c-deda0fd399a2","html_url":"https://github.com/ymasaoka/docker-dotnetcore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymasaoka%2Fdocker-dotnetcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymasaoka%2Fdocker-dotnetcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymasaoka%2Fdocker-dotnetcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymasaoka%2Fdocker-dotnetcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymasaoka","download_url":"https://codeload.github.com/ymasaoka/docker-dotnetcore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243236412,"owners_count":20258828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","docker","docker-compose","docker-dotnetcore","dotnet","dotnet-core","dotnetcore"],"created_at":"2024-11-18T05:27:03.448Z","updated_at":"2025-12-28T02:05:37.302Z","avatar_url":"https://github.com/ymasaoka.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# docker-dotnetcore  \nProvides docker-compose.yaml to launch a Docker container for .NET Core.  \n\n# How to use  \n\n1. **Clone this repository** to a directory of your choice.  \n1. Move to the **docker-dotnetcore** directory.  \n1. Execute the following command to start the container.  \n\n    ```bash\n    docker-compose up -d\n    ```\n\n1. Run the following command to confirm that the container has started.  \n\n    ```bash\n    docker-compose ps\n    ```\n\n## Creating .NET Core project  \nCreate a .NET Core project using the docker-compose command.  \n\n```bash\ndocker-compose run --rm app dotnet new console -o \u003cYourProjectName\u003e\n```\n\nFor `dotnet new` command options like *console*, check [here](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new) or use `--help` option to check it.  \nYou can also see other dotnet commands [here](https://docs.microsoft.com/en-us/dotnet/core/tools/).  \n\n```bash\ndocker-compose run --rm app dotnet new --help\n```\n\n## Execute .NET Core Project  \nThe following command is an example of creating and executing a console application that displays `Hello World!` by using docker-compose command.  \n\n```bash\ndocker-compose run --rm app dotnet new console -o MyFirstProject\ndocker-compose run -w /usr/src/MyFirstProject --rm app dotnet run\n```\n\nThe `-w` option specifies the directory in which to run the command inside the container.  \n\n# Related Repos\nThe repository specified by `image` in docker-compose.yaml can be changed depending on the usage.  \nSee the links below for more information.  \n\n- .NET Core 2.1/3.1  \n    - [dotnet/core/sdk](https://hub.docker.com/_/microsoft-dotnet-core-sdk/): .NET Core SDK  \n    - [dotnet/core/aspnet](https://hub.docker.com/_/microsoft-dotnet-core-aspnet/): ASP.NET Core Runtime  \n    - [dotnet/core/runtime](https://hub.docker.com/_/microsoft-dotnet-core-runtime/): .NET Core Runtime  \n    - [dotnet/core/runtime-deps](https://hub.docker.com/_/microsoft-dotnet-core-runtime-deps/): .NET Core Runtime Dependencies  \n    - [dotnet/core/samples](https://hub.docker.com/_/microsoft-dotnet-core-samples/): .NET Core Samples  \n- .NET 5.0+  \n    - [dotnet/sdk](https://hub.docker.com/_/microsoft-dotnet-sdk/): .NET SDK  \n    - [dotnet/aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet/): ASP.NET Core Runtime  \n    - [dotnet/runtime](https://hub.docker.com/_/microsoft-dotnet-runtime/): .NET Runtime  \n    - [dotnet/runtime-deps](https://hub.docker.com/_/microsoft-dotnet-runtime-deps/): .NET Runtime Dependencies  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymasaoka%2Fdocker-dotnetcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymasaoka%2Fdocker-dotnetcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymasaoka%2Fdocker-dotnetcore/lists"}