Note that if all you need is to run snapcraft as a snap inside a docker environment, there are examples of how to do this in other parts of the forum, such as https://snapcraft.io/docs/build-on-docker. This works because snapcraft is a classic snap and can just be “unpacked” on a system and used without the necessary setup that snapd does for strict snaps.