publish ros package with snap inside docker

asked 2021-04-08 10:53:17 -0500

dinesh gravatar image

I am following this tutorial to package my ros package as snap package so that it can be deployed on remote embedded computer like raspberry pi. But i'm facing problem when running the snap inside the docker container. I have succesfully installed the snapd inside container with command:

apt install snapd

But now when i'm tring to install the snapcraft i'm getting this error:

root@4be3b2fe19d7:~# snap install --classic snapcraft
error: cannot communicate with server: Post http://localhost/v2/snaps/snapcraft: dial unix /run/snapd.socket: connect: no such file or directory
root@4be3b2fe19d7:~# snap
The snap command lets you install, configure, refresh and remove snaps.
Snaps are packages that work across many different Linux distributions,
enabling secure delivery and operation of the latest apps and utilities.

What i'm trying to do: I'm trying to develop a ros package inside a docker container and publish this package as snap.

edit retag flag offensive close merge delete

Comments

You could directly follow this tutorial: https://snapcraft.io/docs/build-on-do... using the official snapcraft image

GuillaumeB gravatar image GuillaumeB  ( 2022-03-04 05:24:30 -0500 )edit