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
  • Amazon EC2 and S3
    How to sync S3 Bucket with an EC2 instance AWS/Azure/OpenShift
  • Screenshot 2020 06 22 at 22.46.00
    How to use a dedicated MsSQL Db for Pleasant Password Oracle/MSSQL/MySQL
  • ssl
    SSL Encrypted Communications explained Web Server
  • ansible business cards 1600x0 c default
    Kerberos error: Clock skew too great while getting initial credentials Windows Server
  • How to Clear Search History on Bing Chat AI
    How to Clear Search History on Bing Chat AI Windows
  • vmwarevinchin
    3 Ways to Convert VMware VMs to Hyper-V Backup
  • Wyebot
    A comprehensive guide on Wyebot Wireless Intelligence Platform Reviews
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment 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.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to 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

  • GitLabrunner 1 1
    There has been a runner system failure: failed to start the process exec “pwsh” Containers
  • kubernetes
    Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
  • Docker Volumes
    Create and Mount Volume to Docker Container Containers
  • DockerEn
    How to Install and Upgrade Docker Engine From Binaries Containers
  • Dockerize NodeJS Application
    Dockerizing a NodeJs Express Application Automation
  • Windowsfilesystemxx
    Failed to remove network for the build, Job failed error: Invalid volume specification: “/cache” Containers

More Related Articles

GitLabrunner 1 1 There has been a runner system failure: failed to start the process exec “pwsh” Containers
kubernetes Create and monitor Apps using the Azure Kubernetes Service manifest AWS/Azure/OpenShift
Docker Volumes Create and Mount Volume to Docker Container Containers
DockerEn How to Install and Upgrade Docker Engine From Binaries Containers
Dockerize NodeJS Application Dockerizing a NodeJs Express Application Automation
Windowsfilesystemxx Failed to remove network for the build, Job failed error: Invalid volume specification: “/cache” 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

  • Amazon EC2 and S3
    How to sync S3 Bucket with an EC2 instance AWS/Azure/OpenShift
  • Screenshot 2020 06 22 at 22.46.00
    How to use a dedicated MsSQL Db for Pleasant Password Oracle/MSSQL/MySQL
  • ssl
    SSL Encrypted Communications explained Web Server
  • ansible business cards 1600x0 c default
    Kerberos error: Clock skew too great while getting initial credentials Windows Server
  • How to Clear Search History on Bing Chat AI
    How to Clear Search History on Bing Chat AI Windows
  • vmwarevinchin
    3 Ways to Convert VMware VMs to Hyper-V Backup
  • Wyebot
    A comprehensive guide on Wyebot Wireless Intelligence Platform Reviews
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment 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,841 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.