{"action":"opened","issue":{"url":"https://api.github.com/repos/portainer/portainer/issues/1285","repository_url":"https://api.github.com/repos/portainer/portainer","labels_url":"https://api.github.com/repos/portainer/portainer/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/portainer/portainer/issues/1285/comments","events_url":"https://api.github.com/repos/portainer/portainer/issues/1285/events","html_url":"https://github.com/portainer/portainer/issues/1285","id":265749768,"number":1285,"title":"Angular error on using template environmental variable type container","user":{"login":"krisee99","id":20201094,"avatar_url":"https://avatars0.githubusercontent.com/u/20201094?v=4","gravatar_id":"","url":"https://api.github.com/users/krisee99","html_url":"https://github.com/krisee99","followers_url":"https://api.github.com/users/krisee99/followers","following_url":"https://api.github.com/users/krisee99/following{/other_user}","gists_url":"https://api.github.com/users/krisee99/gists{/gist_id}","starred_url":"https://api.github.com/users/krisee99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisee99/subscriptions","organizations_url":"https://api.github.com/users/krisee99/orgs","repos_url":"https://api.github.com/users/krisee99/repos","events_url":"https://api.github.com/users/krisee99/events{/privacy}","received_events_url":"https://api.github.com/users/krisee99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-16T12:20:35Z","updated_at":"2017-10-16T12:20:35Z","closed_at":null,"author_association":"NONE","body":"**Description**\r\n\r\nAngular js error upon creating a container from a custom template with \"bridge\" option selected as Network type while adding a container as enviromental variable\r\n\r\n**Steps to reproduce the issue:**\r\nFor this case I'll be using two database templates\r\n\r\n1. Open up the development console of your browser\r\n2. Create a mysql container with network type bridge from the JSON provided below\r\n3. Create a PostgreSQL container using the JSON provided below and select the previously created mysql container for the DB_HOST and select bridge as network type.\r\n4. The container creation hangs and an error is visible in the console\r\n\r\n### !!Important!!\r\nThe portainer only hangs if the Network is set to \"bridge\" at step 3. (I haven't tested it with custom networks)\r\n\r\n![portainer_error](https://user-images.githubusercontent.com/20201094/31611402-32804aae-b27c-11e7-9a0e-ad239979b5b4.jpg)\r\n_The images are stored locally, no registry is involved in the process._\r\n\r\nThe json for the templates:\r\nMySQL:\r\n  {\r\n    \"title\": \"MySQL\",\r\n    \"description\": \"The most popular open-source database\",\r\n    \"categories\": [\"database\"],\r\n    \"platform\": \"linux\",\r\n    \"logo\": \"https://cloudinovasi.id/assets/img/logos/mysql.png\",\r\n    \"image\": \"mysql:latest\",\r\n    \"env\": [\r\n      {\r\n        \"name\": \"MYSQL_ROOT_PASSWORD\",\r\n        \"label\": \"Root password\"\r\n      }\r\n    ],\r\n    \"ports\": [\r\n      \"3306/tcp\"\r\n    ],\r\n    \"volumes\": [\"/var/lib/mysql\"]\r\n  }\r\n\r\nPostgreSQL:\r\n  {\r\n    \"title\": \"PostgreSQL\",\r\n    \"description\": \"The most advanced open-source database\",\r\n    \"categories\": [\"database\"],\r\n    \"platform\": \"linux\",\r\n    \"logo\": \"https://cloudinovasi.id/assets/img/logos/postgres.png\",\r\n    \"image\": \"postgres:latest\",\r\n    \"env\": [\r\n      {\r\n        \"name\": \"POSTGRES_USER\",\r\n        \"label\": \"Superuser\"\r\n      },\r\n      {\r\n        \"name\": \"POSTGRES_PASSWORD\",\r\n        \"label\": \"Superuser password\"\r\n      },\r\n\t  {\r\n        \"name\": \"DB_HOST\",\r\n        \"label\": \"Database host container\",\r\n        \"type\": \"container\"\r\n      }\r\n    ],\r\n    \"ports\": [\r\n      \"5432/tcp\"\r\n    ],\r\n    \"volumes\": [\"/var/lib/postgresql/data\"]\r\n  }\r\n\r\n\r\n**Technical details:**\r\n\r\nPortainer was launched from an sh script:\r\ndocker run -d -p 9000:9000 \\\r\n    -v \"/var/run/docker.sock:/var/run/docker.sock\" \\\r\n    -v /var/portainer/data:/data \\\r\n    --name=portainer \\\r\n    portainer/portainer \\\r\n    -H unix:///var/run/docker.sock\r\n\r\n* Portainer version:1.15.0\r\n* Target Docker version (the host/cluster you manage): Docker version 17.03.1-ce, build c6d412e\r\n* Platform (windows/linux): linux(Debian 8.8)\r\n* Browser: Chrome\r\n"}}
{"actor":{"display_login":"krisee99"}}