Firstly, THANK YOU for taking the efforts to create the repo with such amazing docker examples.
Issue: With respect to the build command as mentioned in https://github.com/ajeetraina/docker101/blob/master/beginners/intro-to-dockerfile-003.md results in error
`**testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ ls
nginx1.Dockerfile nginx2.Dockerfile
testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ docker build -t testuser/mynginx .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/testuser/Desktop/docker-cert/docker101/beginners/nginx/Dockerfile: no such file or directory**
`
I was not really able to find the root cause of the issue as i could find examples over the net having ".Dockerfile" examples.
What did actually worked for me was:
`**testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ docker build -t testuser/mynginx -f nginx1.Dockerfile .
Sending build context to Docker daemon 3.072kB
Step 1/2 : FROM ubuntu
^C
testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$**`
Just in case if this helps:
$ docker --version Docker version 19.03.6, build 369ce74a3c
I was going to create a PR for the same but didn't have the access rights as its your repo hence creating an issue to let you guys know about it.
Firstly, THANK YOU for taking the efforts to create the repo with such amazing docker examples.
Issue: With respect to the build command as mentioned in https://github.com/ajeetraina/docker101/blob/master/beginners/intro-to-dockerfile-003.md results in error
`**testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ ls
nginx1.Dockerfile nginx2.Dockerfile
testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ docker build -t testuser/mynginx .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/testuser/Desktop/docker-cert/docker101/beginners/nginx/Dockerfile: no such file or directory**
`
I was not really able to find the root cause of the issue as i could find examples over the net having ".Dockerfile" examples.
What did actually worked for me was:
`**testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ docker build -t testuser/mynginx -f nginx1.Dockerfile .
Sending build context to Docker daemon 3.072kB
Step 1/2 : FROM ubuntu
^C
testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$**`
Just in case if this helps:
$ docker --version Docker version 19.03.6, build 369ce74a3cI was going to create a PR for the same but didn't have the access rights as its your repo hence creating an issue to let you guys know about it.