Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Test docker on Windows 8.1

Featured Replies

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

  • Community Expert

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

  • Author

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.

  • Community Expert

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.

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.

  • Author

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

 

 

 

 

  • Author

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>

 

 

  • Author

do you have any idea?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.