get list of containers
docker ps
d66b6a861cc2 portainer/portainer-ce "/portainer" 2 days ago Up 44 minutes 0.0.0.0:8000->8000/tcp, 0.0.0.0:9000->9000/tcp, 9443/tcp portainer-ce
docker restart d66b6a861cc2
With Portainer
Go to the image of the container, and export it.
Re
With Samba, copy haBack01.tar to ~/IOTstack
docker load -i ~/IOTstack/haBack01.tar
docker ps -a
f0ccf194ad31 id for home assistant container
f0ccf194ad31
docker commit −p f0ccf194ad31 haBackup
docker commit -p f0ccf194ad31 container1
docker images
docker save -o ~/IOTstack/haBack.tar container1