Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

ENOENT: No such file or directory Error in Docker build

Posted on 14/11/202328/03/2024 IT Expert By IT Expert No Comments on ENOENT: No such file or directory Error in Docker build
  1. Home
  2. Containers
  3. 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 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

  • update Docker desktop
    How to manually update Docker desktop Containers
  • Slide2
    How to Setup Jenkins Pipelines Environment for Docker Container Deployment 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
  • Docker internal external
    Running Docker commands returns Docker is not recognized as an internal or external command Containers
  • 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
  • kubernetes
    Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift

More Related Articles

update Docker desktop How to manually update Docker desktop Containers
Slide2 How to Setup Jenkins Pipelines Environment for Docker Container Deployment 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
Docker internal external Running Docker commands returns Docker is not recognized as an internal or external command Containers
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
kubernetes Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift

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

Veeam Vanguard

  • slide10
    Add Dynamic Wallpaper controlled by time on Windows 10 and 11 Windows
  • Clone SysPrep
    Clone and Sysprep a Windows Server running on a VMware Workstation Virtualization
  • screenshot 2020 05 11 at 20.03.56
    How to remove printers from HP Utility Mac
  • adc
    How to add a second Domain Controller Windows Server
  • Webp.net resizeimage 5
    How to Improve Website Response Using Traffic Manager AWS/Azure/OpenShift
  • ffd
    Unable to bind to LDAP or AD in Pleasant Password Server Password Manager
  • encryption 04.05.32
    How to Enable BitLocker without Compatible TPM Security | Vulnerability Scans and Assessment
  • 10.0.17763.1 error
    Fix Windows 10 Setup 1809 build 10.0.17763.1 is not supported Error 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,796 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

Active Directory 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.