giacoccalo Posted November 24, 2018 Share Posted November 24, 2018 (edited) Test docker on Windows 8.1 I'm studying docker and I'm a beginner. I can not configure httpd on my operating system. For my exercise I have to use the dockerfile. I would like to place the html files inside this folder: C : \ Users \ MyName \ Desktop \ docker \ htdocs My dockerfile is present in this folder: C : \ Users \ MyName \ Desktop \ docker \ apache_server The code I use is this: FROM httpd:2.4 LABEL Author="Nome Cognome" EXPOSE 80 COPY ./htdocs/ /usr/local/apache2/htdocs/ Why do I get this error? Windows PowerShell Copyright (C) 2014 Microsoft Corporation. Tutti i diritti sono riservati. PS C:\Program Files\Docker Toolbox> cd C:\Users\MyName\Desktop\docker PS C:\Users\MyName\Desktop\docker> docker build -t apache_server:v1 . unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\Users\Si\Desktop\docke r\Dockerfile: The system cannot find the file specified. PS C:\Users\MyName\Desktop\docker> docker run -d --name apache_server -P apache_server Unable to find image 'apache_server:latest' locally C:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: pull access denied for apache_server, repository does not exist or may require 'docker login'. See 'C:\Program Files\Docker Toolbox\docker.exe run --help'. PS C:\Users\MyName\Desktop\docker> docker-machine ip 192.168.99.100 PS C:\Users\MyName\Desktop\docker> Edited November 24, 2018 by giacoccalo Quote Link to comment
trurl Posted November 24, 2018 Share Posted November 24, 2018 This is not a Windows or a Dockers forum. This forum is for support of Unraid. Do you have any interest in Unraid? I doubt anyone here is going to take any interest in your homework.😉 Quote Link to comment
giacoccalo Posted November 24, 2018 Author Share Posted November 24, 2018 Can not you help me anyway? I am a student, a beginner. you are very experienced with docker. I saw what you write. my question is much simpler than what I see on this forum. Quote Link to comment
trurl Posted November 24, 2018 Share Posted November 24, 2018 Probably not many here experienced with docker in Windows, since Unraid is a Linux OS. please take your questions to a Windows or docker forum. Quote Link to comment
BRiT Posted November 24, 2018 Share Posted November 24, 2018 I had developed my dockers over a year ago in WinOS and never had any issues like you're having, so I cant help you at all, except to say that doesnt seem typical at all. Try using a non-special directory like "c:\docker\" instead of putting it on your desktop or documents. Quote Link to comment
giacoccalo Posted November 24, 2018 Author Share Posted November 24, 2018 I already wrote a post on the forum of docker and I received a very kind reply but now my account is no longer usable. I read "Account temporarily on hold" but I do not understand why. I have not written messages that go against the rules, I have not received reproaches for what I wrote and I clicked on the activation email. If I put the docker folder in C I get this: Windows PowerShell Copyright (C) 2014 Microsoft Corporation. Tutti i diritti sono riservati. PS C:\Program Files\Docker Toolbox> cd.. PS C:\Program Files> cd PS C:\Program Files> cd.. PS C:\> cd docker PS C:\docker> docker build -t apache_server:v1 . unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\docker\Dockerfile: The system cannot find the file specified. PS C:\docker> I'm afraid I wrote the wrong URLs. Do you confirm that URLs of the dockerfile and the commands I write in the CLI shel are correct? Thanks for all Quote Link to comment
giacoccalo Posted November 24, 2018 Author Share Posted November 24, 2018 The dockerfile has started and now works. I had a problem with the PC. But now I have this problem: Successfully tagged apache_server:v1 SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and director ies added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions f or sensitive files and directories. PS C:\Users\MyName\Desktop\docker> docker run -d --name apache_server -P apache_server Unable to find image 'apache_server:latest' locally C:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: pull access denied for apache_server, repository does not exist or may require 'docker login'. See 'C:\Program Files\Docker Toolbox\docker.exe run --help'. PS C:\Users\MyName\Desktop\docker> Quote Link to comment
giacoccalo Posted November 27, 2018 Author Share Posted November 27, 2018 do you have any idea? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.