Docker Community Forums

Share and learn in the Docker community.

Issue with docker file

Hi ,

I am new to docker. I am getting this error when i try to build with dockerfile.Please suggest and help me.

docker build -t corpweb .
Sending build context to Docker daemon 30.98MB
Error response from daemon: unexpected error reading Dockerfile: read /mnt/sda1/var/lib/docker/tmp/docker-builder154749283/Dockerfile: is a directory

This is my docker file

#Executing phyton script

FROM ubuntu


RUN apt-get update

RUN apt-get-install -y python python-pip

RUN pip install --upgrade pip

ADD /home/


CMD python

Choose whale menu > Troubleshoot from the menu bar to see the troubleshoot options.

Uninstall or reset Docker

The Troubleshoot page contains the following options:

Restart Docker Desktop: Select to restart Docker Desktop.

Run Diagnostics: Select this option to diagnose any issues on Docker Desktop. For detailed information about diagnostics, see Diagnose problems, send feedback, and create GitHub issues.

Clean / Purge data: Select this option to delete container and image data. Choose whether you’d like to delete data from Hyper-V, WSL 2, or Windows Containers and then click Delete to confirm.

Reset Kubernetes cluster: Select this option to delete all stacks and Kubernetes resources. For more information, see Kubernetes.

Reset to factory defaults: Choose this option to reset all options on Docker Desktop to their initial state, the same as when Docker Desktop was first installed.