{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3608","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3608/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3608/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3608/events","html_url":"https://github.com/aspnet/Mvc/issues/3608","id":118217575,"number":3608,"title":"Docker deploy issues w/ RC1","user":{"login":"mguinness","id":14002844,"avatar_url":"https://avatars.githubusercontent.com/u/14002844?v=3","gravatar_id":"","url":"https://api.github.com/users/mguinness","html_url":"https://github.com/mguinness","followers_url":"https://api.github.com/users/mguinness/followers","following_url":"https://api.github.com/users/mguinness/following{/other_user}","gists_url":"https://api.github.com/users/mguinness/gists{/gist_id}","starred_url":"https://api.github.com/users/mguinness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mguinness/subscriptions","organizations_url":"https://api.github.com/users/mguinness/orgs","repos_url":"https://api.github.com/users/mguinness/repos","events_url":"https://api.github.com/users/mguinness/events{/privacy}","received_events_url":"https://api.github.com/users/mguinness/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-21T19:53:24Z","updated_at":"2015-11-22T01:01:31Z","closed_at":null,"body":"I've had multiple issues when publishing from VS 2015 to a custom docker container after upgrading from Beta8 to RC1.\r\n\r\nIn the publish web dialog, the image name was empty - previously it defaulted to project name (in lowercase).  I had entered a name starting with uppercase which was rejected by docker, so validation is required on this field to use the same regex as docker does.\r\n\r\nOn publish, if the container already existed on docker the publish would fail.  Fixed that with:\r\n`<DockerRemoveConflictingContainers>True</DockerRemoveConflictingContainers>`\r\n\r\nAfter publishing the browser would not automatically start, do I fixed that with:\r\n`<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>`\r\n\r\nBoth of the above were in Beta 8 template, not sure why they were removed in RC1.\r\n\r\nThe next issue was after starting, the web server was listening on port 5000 as below:\r\n\r\n> Hosting environment: Production\r\n> Now listening on: http://localhost:5000\r\n> Application started. Press Ctrl+C to shut down.\r\n\r\nI specified Container port as 8080, so this port entry should be used instead.\r\n\r\nHowever, there is interface binding issue raised in https://github.com/OmniSharp/generator-aspnet/issues/472, so I had to manually change the following:\r\n\r\n`\"web\": \"Microsoft.AspNet.Server.Kestrel\",`\r\nto\r\n`\"web\": \"Microsoft.AspNet.Server.Kestrel --server.urls http://*:8080\",`\r\n\r\nFinally, although this was raised in https://github.com/aspnet/EntityFramework/issues/3089, I got \r\n> EntryPointNotFoundException: sqlite3_close_v2 error.\r\n\r\nHad to fix this by adding the following to the docker file.  I had done this in Beta 8 as well but I thought the packages would've been fixed for RC1.\r\n\r\n`RUN echo 'deb http://ftp.us.debian.org/debian jessie main' >> /etc/apt/sources.list && apt-get update && apt-get -y install libsqlite3-dev`\r\n\r\nI hope these issues can be looked at, but also to document these in case it helps others."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/158697101","html_url":"https://github.com/aspnet/Mvc/issues/3608#issuecomment-158697101","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/3608","id":158697101,"user":{"login":"atrauzzi","id":115199,"avatar_url":"https://avatars.githubusercontent.com/u/115199?v=3","gravatar_id":"","url":"https://api.github.com/users/atrauzzi","html_url":"https://github.com/atrauzzi","followers_url":"https://api.github.com/users/atrauzzi/followers","following_url":"https://api.github.com/users/atrauzzi/following{/other_user}","gists_url":"https://api.github.com/users/atrauzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/atrauzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrauzzi/subscriptions","organizations_url":"https://api.github.com/users/atrauzzi/orgs","repos_url":"https://api.github.com/users/atrauzzi/repos","events_url":"https://api.github.com/users/atrauzzi/events{/privacy}","received_events_url":"https://api.github.com/users/atrauzzi/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T01:01:31Z","updated_at":"2015-11-22T01:01:31Z","body":"Just wanted to make a note here that I'm encountering this issue right now as well when running the current mono based container."}}