{"id":38284536,"url":"https://github.com/supremind/container-snapshot","last_synced_at":"2026-01-17T02:02:32.003Z","repository":{"id":92098969,"uuid":"265421861","full_name":"supremind/container-snapshot","owner":"supremind","description":"Taking snapshots for Docker containers running in Kubernetes","archived":false,"fork":false,"pushed_at":"2023-07-08T05:13:10.000Z","size":181,"stargazers_count":8,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T02:01:53.607Z","etag":null,"topics":["container","crd-controller","docker","kubernetes","operator","operator-framework"],"latest_commit_sha":null,"homepage":"","language":"Go","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/supremind.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":"2020-05-20T02:04:53.000Z","updated_at":"2024-01-24T15:03:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"09c3d24e-aca6-459d-8580-4f66022a29e1","html_url":"https://github.com/supremind/container-snapshot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/supremind/container-snapshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supremind%2Fcontainer-snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supremind%2Fcontainer-snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supremind%2Fcontainer-snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supremind%2Fcontainer-snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supremind","download_url":"https://codeload.github.com/supremind/container-snapshot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supremind%2Fcontainer-snapshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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":["container","crd-controller","docker","kubernetes","operator","operator-framework"],"created_at":"2026-01-17T02:02:31.846Z","updated_at":"2026-01-17T02:02:31.978Z","avatar_url":"https://github.com/supremind.png","language":"Go","readme":"[![Actions Status](https://github.com/supremind/container-snapshot/workflows/Container%20Snapshot/badge.svg)](https://github.com/supremind/container-snapshot/actions?query=workflow%3A%22Container+Snapshot%22)\n[![Coverage Status](https://coveralls.io/repos/github/supremind/container-snapshot/badge.svg?branch=master)](https://coveralls.io/github/supremind/container-snapshot?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/supremind/container-snapshot)](https://goreportcard.com/report/github.com/supremind/container-snapshot) \n\n\n# Container Snapshot Operator\n\nTaking snapshots for Docker containers running in Kubernetes.\n\nThis is a rewritten of [qiniu-ava/snapshot-operator](https://github.com/qiniu-ava/snapshot-operator), \nand is inspired by [wulibin163/kubepush](https://github.com/wulibin163/kubepush).\n\n\n## How it works\n\n1. The operator starts a worker. To communicate to the docker daemon runs the target container, the worker is configured to run on the same node of the target container.\n2. The worker behaves as running `docker commit` to take a snapshot (as a new docker image) for the target container, and\n3. running `docker push` to push the snapshot image.\n\n\n## How to use it\n\n1. preparation:\n\n    1. create CRD:\n\n            kubectl apply -f ./deploy/crds/atom.supremind.com_containersnapshots_crd.yaml\n\n    1. deploy operator:\n\n            kubectl apply -f ./deploy\n\n2. use a ContainerSnapshot\n\n    1. create a pod and make sure it is running:\n\n            kubectl apply -f example/pod.yaml\n\n    2. create an image push secret\n\n        The easies way to do this is [creating one based on existing Docker credentials](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#registry-secret-existing-credentials), more options could be found in the same page.\n\n    3. create a ContainerSnapshot CR:\n\n            kubectl apply -f example/containersnapshot.yaml\n\n        you may need to change the `imagePushSecrets.name` to your secret name, and the `image` to a repository you have write access to\n\n3. check to see the worker pod starts and ends:\n\n        kubectl get po -w\n\n1. validate the generated snapshot image contains target container's read/write layer:\n\n        docker run --rm my-snapshots/example-snapshot:v0.0.1 -- cat /dates\n\n\n## Road map\n\n- [ ] set worker pod template when start the operator\n- [ ] set worker pod template in containerSnapshot spec\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupremind%2Fcontainer-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupremind%2Fcontainer-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupremind%2Fcontainer-snapshot/lists"}