Skip to content

This is a sample application use to help resolve my kind registry issu with act

License

Notifications You must be signed in to change notification settings

kanedafromparis/act-issue-with-kind-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

act-issue-with-kind-registry

This is a sample application use to share my kind registry issu with the great tool act.

Could not open file /etc/docker/daemon.json

[Sample integration test/kind_integration_test]   🐳  docker exec cmd=[node /var/run/act/actions/container-tools-kind-action@v1.5.0/main.js] user=
| Creating registry "kind-registry" on port 5000 from image "registry:2"...
| 127.0.0.1 kind-registry
| jq: error: Could not open file /etc/docker/daemon.json: No such file or directory
| docker: unrecognized service

It has been by pass with

- name: daemon.json hack
          # link to https://github.com/container-tools/kind-action/blob/main/registry.sh#L133
          if: ${{ env.ACT }}
          run: |
            mkdir -p /etc/docker
            echo -n "{\"exec-opts\": [\"native.cgroupdriver=systemd\"],\"log-driver\": \"json-file\",\"log-opts\": {\"max-size\": \"100m\"},\"storage-driver\": \"overlay2\"}" > /etc/docker/daemon.json

docker: unrecognized service

This command sudo service docker restart is working on github but not locally with act.

[Sample integration test/kind_integration_test]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/container-tools-kind-action@v1.5.0/] user=
[Sample integration test/kind_integration_test]   🐳  docker exec cmd=[node /var/run/act/actions/container-tools-kind-action@v1.5.0/main.js] user=
| Creating registry "kind-registry" on port 5000 from image "registry:2"...
| 127.0.0.1 kind-registry
| docker: unrecognized service

About

This is a sample application use to help resolve my kind registry issu with act

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published