{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/1049","repository_url":"https://api.github.com/repos/dotnet/dotnet-docker","labels_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/1049/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/1049/comments","events_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/1049/events","html_url":"https://github.com/dotnet/dotnet-docker/issues/1049","id":431929131,"node_id":"MDU6SXNzdWU0MzE5MjkxMzE=","number":1049,"title":"How to docker framework-dependent webapp on raspberry pi","user":{"login":"leung85","id":8042599,"node_id":"MDQ6VXNlcjgwNDI1OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8042599?v=4","gravatar_id":"","url":"https://api.github.com/users/leung85","html_url":"https://github.com/leung85","followers_url":"https://api.github.com/users/leung85/followers","following_url":"https://api.github.com/users/leung85/following{/other_user}","gists_url":"https://api.github.com/users/leung85/gists{/gist_id}","starred_url":"https://api.github.com/users/leung85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leung85/subscriptions","organizations_url":"https://api.github.com/users/leung85/orgs","repos_url":"https://api.github.com/users/leung85/repos","events_url":"https://api.github.com/users/leung85/events{/privacy}","received_events_url":"https://api.github.com/users/leung85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-04-11T09:45:13Z","updated_at":"2019-04-11T14:06:24Z","closed_at":null,"author_association":"NONE","body":"I  test with self-contained WebApp, it works. the docker file\r\n```\r\nFROM mcr.microsoft.com/dotnet/core/runtime-deps:2.2.4-stretch-slim-arm32v7 AS base\r\nWORKDIR /app\r\nEXPOSE 80\r\nEXPOSE 443\r\n\r\nFROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build\r\nWORKDIR /src\r\nCOPY [\"WebApp/WebApp.csproj\", \"WebApp/\"]\r\nRUN dotnet restore \"WebApp/WebApp.csproj\"\r\nCOPY . .\r\nWORKDIR \"/src/WebApp\"\r\nRUN dotnet build \"WebApp.csproj\" -c Release -o /app\r\n\r\nFROM build AS publish\r\nRUN dotnet publish \"WebApp.csproj\" -c Release -r linux-arm -o /app\r\n\r\nFROM base AS final\r\nWORKDIR /app\r\nCOPY --from=publish /app .\r\nENTRYPOINT [\".WebApp\"]\r\n```\r\n\r\nBut i don't know how to work with framework-dependent. It said \"The specified framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found\"\r\nWhere can i get the correct docker for 2.2.0 not 2.2.4 ?\r\n\r\n## Steps to reproduce the issue\r\n1. Create a simple WebAPI project\r\n2. Create a docker file\r\n```\r\nFROM mcr.microsoft.com/dotnet/core/runtime:2.2.4-stretch-slim-arm32v7 AS base\r\nWORKDIR /app\r\nEXPOSE 80\r\nEXPOSE 443\r\n\r\nFROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build\r\nWORKDIR /src\r\nCOPY [\"WebApp/WebApp.csproj\", \"WebApp/\"]\r\nRUN dotnet restore \"WebApp/WebApp.csproj\"\r\nCOPY . .\r\nWORKDIR \"/src/WebApp\"\r\nRUN dotnet build \"WebApp.csproj\" -c Release -o /app\r\n\r\nFROM build AS publish\r\nRUN dotnet publish \"WebApp.csproj\" -c Release -r linux-arm --self-contained false -o /app\r\n\r\nFROM base AS final\r\nWORKDIR /app\r\nCOPY --from=publish /app .\r\nENTRYPOINT [\"dotnet\", \"WebApp.dll\"]\r\n```\r\n3. build docker file and deploy to raspberry\r\n4. run in raspberry  `docker run --rm -it -p 8000:80 armfw/core`\r\n\r\n\r\n## Expected behavior\r\n```\r\nwarn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]\r\n      No XML encryptor configured. Key {50af33bd-1bb8-48c8-937f-0daa5073a10e} may be persisted to storage in unencrypted form.\r\nHosting environment: Production\r\nContent root path: /app\r\nNow listening on: http://[::]:80\r\n```\r\n\r\n## Actual behavior\r\n```\r\nIt was not possible to find any compatible framework version\r\nThe specified framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found.\r\n  - Check application dependencies and target a framework version installed at:\r\n      /usr/share/dotnet/\r\n  - Installing .NET Core prerequisites might help resolve this problem:\r\n      https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409\r\n  - The .NET Core framework and SDK can be installed from:\r\n\r\n```\r\n## Additional information (e.g. issue happens only occasionally)\r\n\r\n## Output of `docker version`\r\n\r\n```\r\nClient:\r\n Version:           18.09.0\r\n API version:       1.39\r\n Go version:        go1.10.4\r\n Git commit:        4d60db4\r\n Built:             Wed Nov  7 00:57:21 2018\r\n OS/Arch:           linux/arm\r\n Experimental:      false\r\n\r\nServer: Docker Engine - Community\r\n Engine:\r\n  Version:          18.09.0\r\n  API version:      1.39 (minimum version 1.12)\r\n  Go version:       go1.10.4\r\n  Git commit:       4d60db4\r\n  Built:            Wed Nov  7 00:17:57 2018\r\n  OS/Arch:          linux/arm\r\n  Experimental:     false\r\n```\r\n\r\n\r\n## Output of `docker info`\r\n\r\n```\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 4\r\nServer Version: 18.09.0\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host macvlan null overlay\r\n Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84\r\nrunc version: 2b18fe1d885ee5083ef9f0838fee39b62d653e30\r\ninit version: fec3683\r\nSecurity Options:\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.14.79-v7+\r\nOperating System: Raspbian GNU/Linux 9 (stretch)\r\nOSType: linux\r\nArchitecture: armv7l\r\nCPUs: 4\r\nTotal Memory: 875.6MiB\r\nName: raspberrypi\r\nID: PXTK:2D6R:4YS7:5QKF:OTN3:6RO3:H7TY:725J:2NKA:AFAP:XNOO:RRFT\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: false\r\nProduct License: Community Engine\r\n\r\nWARNING: No memory limit support\r\nWARNING: No swap limit support\r\nWARNING: No kernel memory limit support\r\nWARNING: No oom kill disable support\r\nWARNING: No cpu cfs quota support\r\nWARNING: No cpu cfs period support\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/comments/482128788","html_url":"https://github.com/dotnet/dotnet-docker/issues/1049#issuecomment-482128788","issue_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/1049","id":482128788,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MjEyODc4OA==","user":{"login":"leung85","id":8042599,"node_id":"MDQ6VXNlcjgwNDI1OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8042599?v=4","gravatar_id":"","url":"https://api.github.com/users/leung85","html_url":"https://github.com/leung85","followers_url":"https://api.github.com/users/leung85/followers","following_url":"https://api.github.com/users/leung85/following{/other_user}","gists_url":"https://api.github.com/users/leung85/gists{/gist_id}","starred_url":"https://api.github.com/users/leung85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leung85/subscriptions","organizations_url":"https://api.github.com/users/leung85/orgs","repos_url":"https://api.github.com/users/leung85/repos","events_url":"https://api.github.com/users/leung85/events{/privacy}","received_events_url":"https://api.github.com/users/leung85/received_events","type":"User","site_admin":false},"created_at":"2019-04-11T14:06:24Z","updated_at":"2019-04-11T14:06:24Z","author_association":"NONE","body":"@MichaelSimons \r\n\r\nI create below project by vs2019 in window 10.  and installed .net core SDK 2.2.202. There is no option allow me to update to 2.2.4:\r\n![image](https://user-images.githubusercontent.com/8042599/55963758-00d81b00-5ca6-11e9-999c-771c112e7510.png)\r\n\r\n\r\nProject:\r\nhttps://github.com/leung85/WebAPIDockerTest"}}
{"actor":{"display_login":"leung85"}}