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
  • Schedule and join Teams Meeting
    How to schedule and join meetings with Microsoft Teams JIRA|Confluence|Apps
  • tux through window 620x354 1
    WSL Error 0x8007019e: WSL Register Distribution failed with error Windows
  • microsoft authenticator 1280x720 1
    How to setup Microsoft Authenticator Password Manager
  • Performancewin10
    How Performance Monitor works in Windows 10 Windows
  • Telegram Bot for wordpress
    Configure Telegram to receive Blog Notifications JIRA|Confluence|Apps
  • Microsoft Defender
    Attack Surface Reduction Configuration with Microsoft Defender Scripts
  • Featured image Microsoft diagnostic feedback disabled
    Prevent your PC from sending Diagnostics Feedback off via Windows Settings and Group Policy Windows
  • iso10
    Mount an ISO image in Windows 10 and 11 Windows

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 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

  • PRIVATE DOCKER REGISTRY
    How to Set up Private Docker Registry Containers
  • 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
  • How to stop remove and manage docker container
    Stopping, Removing and Naming Docker Container Containers
  • kubernetes
    Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
  • GitLabrunner 1 1
    There has been a runner system failure: failed to start the process exec “pwsh” Containers

More Related Articles

PRIVATE DOCKER REGISTRY How to Set up Private Docker Registry Containers
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
How to stop remove and manage docker container Stopping, Removing and Naming Docker Container Containers
kubernetes Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
GitLabrunner 1 1 There has been a runner system failure: failed to start the process exec “pwsh” 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

  • Schedule and join Teams Meeting
    How to schedule and join meetings with Microsoft Teams JIRA|Confluence|Apps
  • tux through window 620x354 1
    WSL Error 0x8007019e: WSL Register Distribution failed with error Windows
  • microsoft authenticator 1280x720 1
    How to setup Microsoft Authenticator Password Manager
  • Performancewin10
    How Performance Monitor works in Windows 10 Windows
  • Telegram Bot for wordpress
    Configure Telegram to receive Blog Notifications JIRA|Confluence|Apps
  • Microsoft Defender
    Attack Surface Reduction Configuration with Microsoft Defender Scripts
  • Featured image Microsoft diagnostic feedback disabled
    Prevent your PC from sending Diagnostics Feedback off via Windows Settings and Group Policy Windows
  • iso10
    Mount an ISO image in Windows 10 and 11 Windows

Subscribe to Blog via Email

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

Join 1,825 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.