{"id":17132200,"url":"https://github.com/bitsofinfo/kaniko-issue-a","last_synced_at":"2026-01-05T09:05:59.391Z","repository":{"id":146759147,"uuid":"280263182","full_name":"bitsofinfo/kaniko-issue-a","owner":"bitsofinfo","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-16T21:49:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T05:18:40.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitsofinfo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-16T21:33:23.000Z","updated_at":"2020-07-16T21:49:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f3cb856-defe-40e6-bcaa-a187d6821806","html_url":"https://github.com/bitsofinfo/kaniko-issue-a","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitsofinfo/kaniko-issue-a","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fkaniko-issue-a","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fkaniko-issue-a/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fkaniko-issue-a/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fkaniko-issue-a/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitsofinfo","download_url":"https://codeload.github.com/bitsofinfo/kaniko-issue-a/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fkaniko-issue-a/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28215495,"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","status":"online","status_checked_at":"2026-01-05T02:00:06.358Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-14T19:26:21.255Z","updated_at":"2026-01-05T09:05:59.372Z","avatar_url":"https://github.com/bitsofinfo.png","language":"Roff","readme":"# kaniko-issue-a\n\nKaniko: `debug-v0.24.0`\nDocker: `19.03.8` on a mac\n\nhttps://github.com/GoogleContainerTools/kaniko/issues/1351\n\n---\n\nCreate cert for registry\n```\nopenssl req -newkey rsa:2048 -nodes -keyout tls.key -x509 -days 365 -out tls.crt\n```\n\nSetup network\n```\ndocker network create --driver bridge kaniko\n```\n\nStart local registry\n```\ndocker run -d -p 443:443 \\\n    --network kaniko \\\n    --hostname kaniko-registry \\\n    -v `pwd`/tls.crt:/opt/tls/tls.crt \\\n    -v `pwd`/tls.key:/opt/tls/tls.key \\\n    -e REGISTRY_HTTP_ADDR=\"0.0.0.0:443\" \\\n    -e REGISTRY_HTTP_TLS_CERTIFICATE=/opt/tls/tls.crt \\\n    -e REGISTRY_HTTP_TLS_KEY=/opt/tls/tls.key \\\n    --name kaniko-registry \\\n    registry:2.7.1 \n```\n\n# Build via Kaniko\n\nBuild image push to local registry\n```\ndocker run --network kaniko    \\\n -v `pwd`:/opt/build  \\\n-it gcr.io/kaniko-project/executor:debug-v0.24.0   \\\n--skip-tls-verify-registry kaniko-registry:443    \\\n--destination=kaniko-registry:443/kaniko-bug-1:kaniko-build1   \\\n    --context=/opt/build --whitelist-var-run=false \\\n    --dockerfile=/opt/build/Dockerfile.4kaniko\n```\n\nNote the output of the `/etc/apache2/conf.d` permission prior to the `COPY` at line 53\n```\nINFO[0027] Running: [/bin/sh -c ls -al /etc/apache2]    \ntotal 112\ndrwxr-xr-x    4 root     root          4096 Jul 16 21:26 .\ndrwxr-xr-x    1 root     root          4096 Jul 16 21:26 ..\ndrwxrwxrwx    2 root     root          4096 Jul 16 21:26 conf.d\n```\n\nNote the output of the `/etc/apache2/conf.d` permission after to the `COPY` at line 53\n```\nINFO[0027] Running: [/bin/sh -c ls -al /etc/apache2]    \ntotal 112\ndrwxr-xr-x    4 root     root          4096 Jul 16 21:26 .\ndrwxr-xr-x    1 root     root          4096 Jul 16 21:26 ..\ndrwxr-xr-x    2 root     root          4096 Jul 16 21:26 conf.d\n```\n\nShell in to inspect:\n```\n\n$ docker run -it --entrypoint /bin/bash localhost:443/kaniko-bug-1:kaniko-build1\n\nbash-5.0$ ls -al /etc\ntotal 212\n...\nlrwxrwxrwx    1 root     root            12 Jul 16 21:28 httpd -\u003e /etc/apache2\n```\n\n# Build Via Docker\n\nBuild w/ docker. \n```\ndocker build -f Dockerfile.4kaniko -t kaniko-bug-1:docker-build1 .\n```\n\nNote the output of the `/etc/apache2/conf.d` permission prior to the `COPY` at line 53\n```\nStep 13/16 : RUN ls -al /etc/apache2\n ---\u003e Running in bf0e36ca5aff\ntotal 112\ndrwxr-xr-x    1 root     root          4096 Jul 16 21:28 .\ndrwxr-xr-x    1 root     root          4096 Jul 16 21:28 ..\ndrwxrwxrwx    1 root     root          4096 Jul 16 21:28 conf.d\n```\n\nNote the output of the `/etc/apache2/conf.d` permission after to the `COPY` at line 53\n```\nStep 16/16 : RUN ls -al /etc/apache2\n ---\u003e Running in 15a6a50ad1a7\ntotal 112\ndrwxr-xr-x    1 root     root          4096 Jul 16 21:28 .\ndrwxr-xr-x    1 root     root          4096 Jul 16 21:28 ..\ndrwxrwxrwx    1 root     root          4096 Jul 16 21:28 conf.d\n```\n\nShell in to inspect:\n```\n\n$ docker run -it --entrypoint /bin/bash kaniko-bug-1:docker-build1\n\nbash-5.0$ ls -al /etc\ntotal 212\n...\nlrwxrwxrwx    1 root     root            12 Jul 16 21:28 httpd -\u003e /etc/apache2\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsofinfo%2Fkaniko-issue-a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitsofinfo%2Fkaniko-issue-a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsofinfo%2Fkaniko-issue-a/lists"}