{"action":"created","issue":{"url":"https://api.github.com/repos/portainer/portainer/issues/698","repository_url":"https://api.github.com/repos/portainer/portainer","labels_url":"https://api.github.com/repos/portainer/portainer/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/portainer/portainer/issues/698/comments","events_url":"https://api.github.com/repos/portainer/portainer/issues/698/events","html_url":"https://github.com/portainer/portainer/issues/698","id":215211583,"number":698,"title":"Add \"Exposed Ports\" to Add container page","user":{"login":"dimitrovs","id":200772,"avatar_url":"https://avatars3.githubusercontent.com/u/200772?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitrovs","html_url":"https://github.com/dimitrovs","followers_url":"https://api.github.com/users/dimitrovs/followers","following_url":"https://api.github.com/users/dimitrovs/following{/other_user}","gists_url":"https://api.github.com/users/dimitrovs/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitrovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitrovs/subscriptions","organizations_url":"https://api.github.com/users/dimitrovs/orgs","repos_url":"https://api.github.com/users/dimitrovs/repos","events_url":"https://api.github.com/users/dimitrovs/events{/privacy}","received_events_url":"https://api.github.com/users/dimitrovs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-18T18:15:31Z","updated_at":"2017-03-19T00:37:09Z","closed_at":null,"body":"When adding a container one can set Port mapping or \"Publish all exposed ports\" but there is no option to expose a port. Sometimes the Dockerfile doesn't specify any exposed ports but it is useful to be able to expose a port at container creation time. In docker-cli this maps to \"--expose\"."},"comment":{"url":"https://api.github.com/repos/portainer/portainer/issues/comments/287585551","html_url":"https://github.com/portainer/portainer/issues/698#issuecomment-287585551","issue_url":"https://api.github.com/repos/portainer/portainer/issues/698","id":287585551,"user":{"login":"dimitrovs","id":200772,"avatar_url":"https://avatars3.githubusercontent.com/u/200772?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitrovs","html_url":"https://github.com/dimitrovs","followers_url":"https://api.github.com/users/dimitrovs/followers","following_url":"https://api.github.com/users/dimitrovs/following{/other_user}","gists_url":"https://api.github.com/users/dimitrovs/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitrovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitrovs/subscriptions","organizations_url":"https://api.github.com/users/dimitrovs/orgs","repos_url":"https://api.github.com/users/dimitrovs/repos","events_url":"https://api.github.com/users/dimitrovs/events{/privacy}","received_events_url":"https://api.github.com/users/dimitrovs/received_events","type":"User","site_admin":false},"created_at":"2017-03-19T00:37:09Z","updated_at":"2017-03-19T00:37:09Z","body":"You guys are confusing \"EXPOSING\" and \"PUBLISHING\" ports. What the current UI does is allow you to \"PUBLISH\" ports (i.e. the docker -p flag). If you specify two ports it will open the left-hand one on the host (i.e. on all interfaces by default) and will forward it to the right-hand one on the container. If you don't specify the left-hand one then it will open a random port on the host and will forward you to the right-hand one on the container. That's PUBLISHING ports, i.e. OPENING ports on the HOST.\r\n\r\nWhat I asked for is EXPOSING ports (i.e. docker --expose or EXPOSE in the Dockerfile). When you expose a port there is no mapping involved, no port forwarding involved, it just allows linked (old style links) containers to talk over the exposed port or service discovery."}}
{"actor":{"display_login":"dimitrovs"}}