canonical / docker-snap

https://snapcraft.io/docker
MIT License
52 stars 27 forks source link

seems docker-init is missing in recent revisions #139

Closed stuart-warren closed 1 year ago

stuart-warren commented 1 year ago

I have a couple of snap revisions installed, though docker-init is no longer present in the newer revision

stuartwarren@a-WW-1-NUC-4:~$ find /snap/docker -name docker 2>/dev/null
/snap/docker
/snap/docker/2883/bin/docker
/snap/docker/2883/usr/libexec/docker
/snap/docker/1458/bin/docker
/snap/docker/1458/lib/python3.6/site-packages/docker
stuartwarren@a-WW-1-NUC-4:~$ find /snap/docker -name docker-init 2>/dev/null
/snap/docker/1458/bin/docker-init

this means I'm not getting errors like

`exec: "docker-init": executable file not found in $PATH`

when running containers with the init flag used to work

stuart-warren commented 1 year ago

seems that https://github.com/docker-snap/docker-snap/blob/d8857a96731a4b35697d6b2300734064fde5f5d9/snap/snapcraft.yaml#L312

should be

    'usr/local/bin/tini-static': bin/docker-init