So I have attempted to dive into Docker and created my first image of a web app and can run it successfully.
How can I create a .deb file to send this out to people to install it on their systems?
So I have attempted to dive into Docker and created my first image of a web app and can run it successfully.
How can I create a .deb file to send this out to people to install it on their systems?
Docker images themselves are what should be distributed. Images are not meant to be converted to .deb packages. You should look into publishing the image you created on docker hub or another container repository like Amazon Elastic Container Registry or GitHub Container Registry so people can docker pull and docker run your image.
If you don't want to use a container registry, you can always share your repository and Dockerfile so people can build it locally.
See the other answer for a more reliable way but not "best practice" method to share Docker images. These methods all require Docker be installed.
Another way to send an image to someone - without using a registry - is to use docker save to create a file containing the image. You can then send the file to the people that need it and they can restore the image using docker load.
.deb files around and using dpkg rather than apt-get to install them; I'd do it only as a last resort in situations where you can't run a Docker repository or use a pre-hosted one.)