Dockerfile, how install snap, snapd: unrecognized service

well I got some problem with my Dockerfile, in fact I try to install snapd on Debian and Ubuntu in almost all version. When I try to launch a command I got this error error: cannot communicate with