{"id":16841660,"url":"https://github.com/kevinpollet/go-docker-multi-arch","last_synced_at":"2026-04-29T06:36:54.882Z","repository":{"id":138628690,"uuid":"511206949","full_name":"kevinpollet/go-docker-multi-arch","owner":"kevinpollet","description":"The purpose of this repository is to show how to build a multi-arch Docker image for amd64 and arm64","archived":false,"fork":false,"pushed_at":"2022-07-08T19:26:55.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T05:16:19.952Z","etag":null,"topics":["docker","golang","multiarch"],"latest_commit_sha":null,"homepage":"","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/kevinpollet.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":"2022-07-06T16:10:25.000Z","updated_at":"2022-07-08T20:09:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"95dbcb3a-2a23-4bb1-8014-d3930884fff7","html_url":"https://github.com/kevinpollet/go-docker-multi-arch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kevinpollet/go-docker-multi-arch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-docker-multi-arch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-docker-multi-arch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-docker-multi-arch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-docker-multi-arch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinpollet","download_url":"https://codeload.github.com/kevinpollet/go-docker-multi-arch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-docker-multi-arch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263013703,"owners_count":23399812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","golang","multiarch"],"created_at":"2024-10-13T12:42:39.306Z","updated_at":"2026-04-29T06:36:49.840Z","avatar_url":"https://github.com/kevinpollet.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-docker-multi-arch\n\nThe purpose of this repository is to show how to build a multi-arch Docker image from the command-line for `amd64`\nand `arm64` architectures. The Go application built inside the Docker image displays the OS, Architecture and Go version\nof the runtime environment.\n\nThe [buildx](https://docs.docker.com/buildx/working-with-buildx/#build-multi-platform-images) plugin allows to build and\npush multi-platform images from the command-line. The following command will create and use\na `buildx` [builder instance](https://docs.docker.com/buildx/working-with-buildx/#work-with-builder-instances):\n\n```shell\n$ docker buildx create --name multi-arch --use \n```\n\nBuild and push the multi-arch Docker image with:\n\n```shell\n$ docker buildx build --platform=linux/amd64,linux/arm64 -t \u003crepository_name\u003e/go-docker-multi-arch --push .\n```\n\nUsing both images on Apple Silicon will output the following:\n\n```shell\n$ docker run --rm \u003crepository_name\u003e/go-docker-multi-arch\nOS/Arch:    linux/arm64\nGo version: go1.17.11\n\n$ docker run --platform linux/amd64 --rm \u003crepository_name\u003e/go-docker-multi-arch\nOS/Arch:    linux/amd64\nGo version: go1.17.11\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinpollet%2Fgo-docker-multi-arch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinpollet%2Fgo-docker-multi-arch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinpollet%2Fgo-docker-multi-arch/lists"}