{"id":17008425,"url":"https://github.com/egil/iot-edge-device-in-docker","last_synced_at":"2026-04-29T08:32:03.752Z","repository":{"id":237637569,"uuid":"794938284","full_name":"egil/IoT-Edge-Device-in-Docker","owner":"egil","description":"A docker image that enables running the aziot-edge in a docker container.","archived":false,"fork":false,"pushed_at":"2024-08-30T09:11:06.000Z","size":16,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T12:26:43.654Z","etag":null,"topics":["azure","docker","iot-edge"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/egilhansen/iothub-edge-device","language":"Dockerfile","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/egil.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":"2024-05-02T09:04:45.000Z","updated_at":"2025-03-11T13:30:53.000Z","dependencies_parsed_at":"2024-11-28T22:27:32.544Z","dependency_job_id":"e4b24501-2640-4ec9-a6f3-86968e60bd24","html_url":"https://github.com/egil/IoT-Edge-Device-in-Docker","commit_stats":null,"previous_names":["egil/iot-edge-device-in-docker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/egil/IoT-Edge-Device-in-Docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egil%2FIoT-Edge-Device-in-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egil%2FIoT-Edge-Device-in-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egil%2FIoT-Edge-Device-in-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egil%2FIoT-Edge-Device-in-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egil","download_url":"https://codeload.github.com/egil/IoT-Edge-Device-in-Docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egil%2FIoT-Edge-Device-in-Docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32417435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["azure","docker","iot-edge"],"created_at":"2024-10-14T05:28:15.975Z","updated_at":"2026-04-29T08:32:03.730Z","avatar_url":"https://github.com/egil.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoT Edge Device in Docker\nA docker image that enables running the aziot-edge 1.5 in a docker container.\n\n## Getting started\n\nTo run an IoT Edge device locally, install a compatible Docker runtime, e.g. Docker for Windows.\n\nThen the following is needed:\n\n1. **Create an IoT device identity:**\n\n    ```shell\n    az iot hub device-identity create --device-id \u003cDEVICE_ID\u003e --hub-name \u003cIOT_HUB_NAME\u003e --edge-enabled\n    az iot hub device-identity connection-string show --device-id \u003cDEVICE_ID\u003e --hub-name \u003cIOT_HUB_NAME\u003e\n    ```\n\n2. **Start the container:**\n\n    ```shell\n    docker run -d --restart unless-stopped --privileged -it -v /var/run/docker.sock:/var/run/docker.sock -v /sys/fs/cgroup:/sys/fs/cgroup:rw -e connectionString='\u003cIOT_EDGE_DEVICE_CONNECTION_STRING\u003e' --hostname=edgedevice1 --name iot-edge-device egilhansen/iothub-edge-device:1.5.7-amd64 --dns 8.8.8.8 --log-driver \"json-file\" --log-opt \"max-file=10\" --log-opt \"max-size=200k\"\n    ```\n\n    Or use the following docker-compose (with the edge device connection string replaced):\n\n    ```yml\n    services:\n    iot-edge-device:\n        image: egilhansen/iothub-edge-device:1.5.7-amd64\n        restart: unless-stopped\n        privileged: true\n        volumes:\n        - /var/run/docker.sock:/var/run/docker.sock\n        - /sys/fs/cgroup:/sys/fs/cgroup:rw\n        environment:\n        - connectionString=\"\u003cIOT-EDGE-DEVICE-CONNECTION-STRING\u003e\"\n        hostname: edgedevice1\n        dns: 8.8.8.8\n        logging:\n        driver: \"json-file\"\n        options:\n            max-file: \"10\"\n            max-size: \"200k\"\n    ```\n\n    And then run: `docker compose up`.\n\n3. **Monitor IoT edge init:**\n\n    ```shell\n    docker exec -it iot-edge-device bash\n\n    # check init service\n    journalctl -u iotedge-init.service -f\n\n    # check iotedge\n    iotedge list\n    iotedge check\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegil%2Fiot-edge-device-in-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegil%2Fiot-edge-device-in-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegil%2Fiot-edge-device-in-docker/lists"}