Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Containers » ENOENT: No such file or directory Error in Docker build
  • VRAM on Windows 1
    Check the Size of Video Random Access Memory (VRAM) in Windows Windows
  • dotnet6783
    Various methods to Install .NET Framework in Windows Windows
  • VirtualinstallationonMac
    How to install Oracle VirtualBox on a Mac device Mac
  • Screenshot 2021 02 14 at 00.35.50
    How to manage automatic login on Ubuntu Linux Linux
  • automatepythonsinwindows
    Python Automation in Windows with Visual Studio Code Version Control System
  • tuning tomcat
    How to upgrade Apache Tomcat from One Version to another Web Server
  • Active Directory with IPMI for Out of Band Management
    Integrate Active Directory with IPMI for Out-of-Band Management Backup
  • dfefeq
    Error 740: Elevated permissions are required to run DISM Windows Server

ENOENT: No such file or directory Error in Docker build

Posted on 14/11/202328/03/2024 Christian By Christian No Comments on ENOENT: No such file or directory Error in Docker build
Docker-ENOENT-error-

Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers. The service has both free and premium tiers. in this short article, we shall discuss how to fix “ENOENT: No such file or directory Error in Docker build”. Please see How to stop Docker from automatically starting on Mac how to manually update Docker desktop, and how to Manage BitLocker and FileVault with Trellix Native Encryption.

The following error in the image below states that it can’t find the file in the specified directory: ENOENT: no such file or directory.

Docker-uncaught-exception

What is the AppData Folder?

Applications in Windows often store their settings and temporary data in the AppData Folder. Each Windows user account has its own AppData folder. These include application settings, files, and data unique to the applications on your Windows PC.

Before providing the answer, let us discuss some terms. The AppData folder in Windows contains user-specific preferences and profile configurations which are further divided into three subfolders.

You can access the AppData folder by pressing the Windows key + R at the same time and typing ” %appdata% ” or ” %localappdata% ” depending on whether you want to go to your Roaming folder or your Local folder.

AppData
  • The roaming folder contains data that can move with the user profile from one device to the other. This means data can be synced across multiple Windows systems. 
  • The local folder contains data that cannot move with your user profile. This means data is not synced between multiple PCs.
  • The LocalLow folder contains data that is similar to Local except it is used by applications with low integrity that run with restricted security settings. For example, Mozilla Firefox, Adobe etc.

Also, see how to install and uninstall Docker Desktop on Windows 10 and Windows Server, how to fix “Failed to remove network for build: Error during connect in the default daemon configuration on Windows, the Docker client must be run with elevated privileges“.

Resolve this error message “ENOENT: no such file or directory”

Now that you have familiarized yourself with what an AppData is, then let’s proceed and resolve this issue.

This is very simple. Since each environment is unique, a good understanding of it is necessary to resolve most of your issues. Else, you will have to consume many of the resources online without success.

You can also view the AppData folder by navigating into your Users folder, which is there in the C drive. In my case, the path is C:\Users\christian.

local-appdata

Since Docker is unable to find the Docker folder in the local folder, we will have to copy this folder into the Roaming folder. As you can see, there is no Docker folder in it at the moment.

roaming-rofile-no-docker-foler

Now, we have successfully copied the folder to the Roaming Folder.

Issue-resolved-moved-to-the-roamin-profile

Start Docker again via the shortcut. It would be started without errors. As you can see, I have got an icon warning.

Note: Do not forget to update docker as is the case in my lab environment. 
Docker-is-running-again

You may want to see How to correctly disable BitLocker on Windows Server, and “Running Docker commands returns Docker is not recognized as an internal or external command“.

FAQs on Docker

Does Docker run on Linux, macOS, and Windows?

You can run both Linux and Windows programs and executables in Docker containers. The Docker platform runs natively on Linux (on x86-64, ARM and many other CPU architectures) and on Windows (x86-64).

Do I lose my data with the Docker container?

Any data that your application writes to disk gets preserved in its container until you explicitly delete the container. The file system for the container persists even after the container halts.

I hope you found this blog post on how to fix “ENOENT: No such file or directory Error in Docker build” helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Containers Tags:container, containers, docker, Docker Desktop, Microsoft Windows, Windows 10, Windows Server 2016

Post navigation

Previous Post: How to correctly disable BitLocker on Windows Server
Next Post: Turn off Automatic Updates in Windows via Windows Registry and Group Policy

Related Posts

  • docker desktop 1
    Failed to remove network for build: Error during connect in the default daemon configuration on Windows, the Docker client must be run with elevated privileges Containers
  • update Docker desktop
    How to manually update Docker desktop Containers
  • Slide2
    How to Setup Jenkins Pipelines Environment for Docker Container Deployment Containers
  • featurekube
    How to Install and Use Minikube on a Linux System Containers
  • How to configure Azure container register with secured connection with container apps
    Configure Azure Container Registry for a secure connection with Azure Container Apps AWS/Azure/OpenShift
  • portainer feature
    How to Install Docker Portainer on Linux Containers

More Related Articles

docker desktop 1 Failed to remove network for build: Error during connect in the default daemon configuration on Windows, the Docker client must be run with elevated privileges Containers
update Docker desktop How to manually update Docker desktop Containers
Slide2 How to Setup Jenkins Pipelines Environment for Docker Container Deployment Containers
featurekube How to Install and Use Minikube on a Linux System Containers
How to configure Azure container register with secured connection with container apps Configure Azure Container Registry for a secure connection with Azure Container Apps AWS/Azure/OpenShift
portainer feature How to Install Docker Portainer on Linux Containers

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • VRAM on Windows 1
    Check the Size of Video Random Access Memory (VRAM) in Windows Windows
  • dotnet6783
    Various methods to Install .NET Framework in Windows Windows
  • VirtualinstallationonMac
    How to install Oracle VirtualBox on a Mac device Mac
  • Screenshot 2021 02 14 at 00.35.50
    How to manage automatic login on Ubuntu Linux Linux
  • automatepythonsinwindows
    Python Automation in Windows with Visual Studio Code Version Control System
  • tuning tomcat
    How to upgrade Apache Tomcat from One Version to another Web Server
  • Active Directory with IPMI for Out of Band Management
    Integrate Active Directory with IPMI for Out-of-Band Management Backup
  • dfefeq
    Error 740: Elevated permissions are required to run DISM Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,832 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.