Karena masalah kurungan dalam model tajam yang berkembang, Docker tidak penuh rasa secara default ( lihat diskusi di forum Snapcraft ).
Untuk mendapatkan beberapa petunjuk bermanfaat tentang cara mengatasi (yaitu memecah) model pengurungan hingga perbaikan yang tepat terjadi. Anda cukup memeriksa aplikasi bantuan Docker yang dikemas dalam sekejap.
$ docker.help
Docker snap: Docker Linux container runtime.
Due to the confinement issues on snappy, it requires some manual setup to make docker-snap works on your machine.
We'll take you through the steps needed to set up docker snap work for you on ubuntu core and ubuntu classic.
On Ubuntu classic, before installing the docker snap,
please run the following command to add the login user into docker group.
sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
On Ubuntu Core 16, after installing the docker snap from store,
Firstly, you need to connect the two interfaces as they're not auto-connected by default.
sudo snap connect docker:account-control :account-control
sudo snap connect docker:home :home
Secondly, reload the snap and allows the user to login to the new group "docker-snap".
snap disable docker
snap enable docker
newgrp docker-snap
Then have fun with docker in snappy.
Perintah terakhir gagal ...
$ newgrp docker-snap
newgrp: group 'docker-snap' does not exist
Namun, saya tidak melihat adanya dampak negatif berdasarkan kegagalan tersebut, dan Docker sekarang berfungsi seperti yang saya harapkan.
Cannot connect to the Docker daemon