blueFast
blueFast

Reputation: 44461

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

Upvotes: 6

Views: 6312

Answers (1)

mlameiras
mlameiras

Reputation: 400

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

Upvotes: 6

Related Questions