Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with building image using snap docker

This is my docker:

» which docker
/snap/bin/docker
» docker --version
Docker version 17.06.2-ce, build a04f55b

Which I installed with:

sudo snap install docker

I try to build an image:

» docker build -f ./Dockerfile .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/snapd/void/Dockerfile: no such file or directory

The Dockerfile is there:

»  ls -l Dockerfile 
-rw-rw-r-- 1 damane damane 144 Aug  8 13:48 Dockerfile

This is my system:

» lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description:    Linux Mint 19 Tara
Release:        19
Codename:       tara
like image 933
blueFast Avatar asked Aug 08 '18 12:08

blueFast


1 Answers

This does not directly answer your problem with the snap installation but, I would recommend not using the snap, but following the instructions on the docker documentation page.

That way you'll always have the official and updated release

like image 71
mlameiras Avatar answered Sep 30 '22 18:09

mlameiras