Docker Error - No Permission To Read From

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • This tutorial is on how to resolve this error message when you are trying to build an image using the Docker.
    error checking context: 'no permission to read from FILENAME'
    Command used in this demo.
    1) To build docker image
    docker build -t IMAGE_NAME .
    2) Clear screen
    clear
    3) Directory list
    ls
    4) Make new directory
    mkdir
    5) Copy file
    cp
    6) Revision of Ubuntu
    lsb_release -a
    #docker, #image,

КОМЕНТАРІ • 10

  • @ruairinewman7320
    @ruairinewman7320 Рік тому +1

    Thanks, that got me out of a bind. I've done a little looking around and I can't find an explanation as to why this is necessary though. Is it a bug? Is it intended behaviour? If so, do you know why, and what the intended benefit is?

    • @RabiGurungXybernetics
      @RabiGurungXybernetics  Рік тому +1

      This is due to something to do with file and directory permission. If you do ls -al you will see in your directory that root user does not have execute capabilities. If you really need to run the dockerfile on the current directory, you will have to change the dockerfile permission using the following command.
      chnod 777 ./dockerfile.
      I hope that helps.

  •  Рік тому +1

    Thanks for the video, the problem is that we've used the home directory to build our stuff
    you can go anywhere under your home directory to build your image, for example :
    cd /home/user/Desktop
    sudo docker build .

  • @inba1035
    @inba1035 2 роки тому +1

    Hi bro please give video for prosoft plx32-eip-mbtcp ... complete configuration setup video

    • @RabiGurungXybernetics
      @RabiGurungXybernetics  2 роки тому +1

      I have logged that video in our to-do list. Thanks for your suggestion.

  • @rahulray7683
    @rahulray7683 Рік тому +1

    Thnx

  • @SandeepYadav-co6kn
    @SandeepYadav-co6kn Рік тому +1

    But, this is not a solution.