Docker Community Forums

Share and learn in the Docker community.

This fails $docker build -t myfuturehub/ubuntu:dockerfile

My Ubuntu Version : Ubuntu 18.04.3 LTS
Docker version 19.03.11, build dd360c7

Error :

root@slave:/Sree/dockerwork# docker build -tmyfuturehub/ubuntu:dockerfile .

error checking context: ‘can’t stat ‘/var/lib/snapd/void’’.

Please help to figure it out.

The registry path for official images (without a slash in the name) is library/. Try this instead:

docker pull registry.hub.docker.com/library/busybox

Thanks a lot for your time and caring @lewish95
Just now, I tried the same build on my mac locally and it worked, but the error I mentioned is from the ubuntu vbox i built on remote server, not just this built commands, few other command are unable to pick the files from which command is run… I need to figure that out but it’s not stopping me for anything.