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

  • Dockerize NodeJS Application
    Dockerizing a NodeJs Express Application Automation
  • Docker Volumes
    Create and Mount Volume to Docker Container 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
  • Windows Container
    How to Install a Windows Server Container Host Containers
  • Storage Explorer
    How to Install Azure Storage Explorer on Windows AWS/Azure/OpenShift
  • How to stop remove and manage docker container
    Stopping, Removing and Naming Docker Container Containers

More Related Articles

Dockerize NodeJS Application Dockerizing a NodeJs Express Application Automation
Docker Volumes Create and Mount Volume to Docker Container 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
Windows Container How to Install a Windows Server Container Host Containers
Storage Explorer How to Install Azure Storage Explorer on Windows AWS/Azure/OpenShift
How to stop remove and manage docker container Stopping, Removing and Naming Docker Container 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

Veeam Vanguard

  • article 1280x720.192a2586 1 1
    Fix Error 0xc1510111: You do not have permission to mount and modify this image Windows Server
  • Azure App Service
    How to Restore Deleted Azure App Service Using PowerShell Automation
  • Slide1
    Fix Failed to open session in VirtualBox to install Windows 11 Image  Windows
  • fkeys
    Unable to change screen brightness and volume: Disable standard function keys on Mac Mac
  • How to Disable UAC with Group Policy and enable PIN in Windows Hello
    How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
  • wmic4
    How to find User Security Identifier (SID) in Windows [Part 1] Windows
  • Spell Check Not Working in Microsoft Word
    How to Fix Spell Check Not Working in Microsoft Word Microsoft Exchange/Office/365
  • Featured image externaldis
    How to fix the external display not working on Windows 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,801 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.