Snap Docker

Build and run container images with Docker.


This repository contains the source for the docker snap package. The package provides a distribution of Docker Community Edition (CE) for Ubuntu Core 16 (and other snap-compatible) systems.

  • Sep 26, 2020 The Snap will start and stop all the services at once, as one ‘block’ application that will also run on the O.S. Has the same crash risk as The conventional way (1st). 3rd – The Docker Way would pull (download) one image. This image uses (shares) the host O.S. Kernel, but it creates one whole independent environment, such as users.
  • Docker is taking care of the substitution. When building a Docker image from the commandline, you can set those values using –build-arg: $ docker build -build-arg somevariablename=avalue. Running that command, with the above Dockerfile, will result in the following line being printed in the process.
  • Oct 14, 2018 The Docker snap seems to be outdated. After sudo snap install docker, docker -version reports “Docker version 17.06.2-ce, build a04f55b”. The current actual Docker version is 18.03. When trying to find the source of the snap to see what’s up, I came across the Docker Snap Repo. Right at the top it says that the Docker Snap is no longer being maintained.
Snap docker

Snap Docker Permission Denied

  • This build can only access files in the home directory. So Dockerfiles and all other files used in commands like docker build, docker save and docker load need to be in $HOME.
  • You can change the configuration of this build by modifying the files in /var/snap/docker/current/.
  • Additional certificates used by the Docker daemon to authenticate with registries need to be added in /var/snap/docker/current/etc/docker/certs.d (instead of /etc/docker/certs.d).
Snap Docker

Running Docker as normal user

Snap Docker

By default, Docker is only accessible with root privileges (sudo). If you want to use docker as a regular user, you need to add your user to the docker group.

Warning: if you add your user to the docker group, it will have similar power as the root user. For details on how this impacts security in your system, see

Snap Docker Start


This snap is built by Canonical based on source code published by Docker, Inc. It is not endorsed or published by Docker, Inc.

Snap-on Locker Docker

Snap Docker

Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.