My snap uses content[docker-executables] interface so that it can run docker/docker-compose commands without having to bundle those executables.
The snapcraft.yaml has the following relevant bits:
plugs: docker-executables: interface: content default-provider: docker target: $SNAP/docker-exe environment: PATH: $PATH:$SNAP/docker-exe/usr/bin:$PATH:$SNAP/docker-exe/bin PYTHONPATH: $SNAP/docker-exe/lib/python2.7/site-packages
This was working fine until docker-snap was updated to 19.03 which upgraded the python version to 3.5. To fix the breakage I had to update PYTHONPATH to
What is the recommended way of using content interface to avoid such breakages in future?