Docker: any example or procedure runing on window10?

Created on 8 Feb 2018  路  3Comments  路  Source: nextcloud/docker

Using docker in windows can encounter many problems.
I can just use owncloud in windows10 with its official docker-compose files. It works.
But they use the volume in docker , that means all the data are in the HyperV.
Any solutions to use folder in windows to store the data ?

For the specificity of docker in windows, it's worth to list some points in the read me file for windows users.
for example, how to use , the limitations ?
Thank you!

Most helpful comment

I installed nextcloud on docker4win just now.
snipaste_2018-05-09_15-41-28

Docker:18.03.1-ce-win65 (17513);
Database:MySQL.

Database is on my host,port 3306./data volume is storage on G:/nextcloud.

Here is my installation:

  1. Download nextcloud image
    ```powershell

docker pull nextcloud
```

  1. Create container
    powershell docker create --name nc -p 8082:80 -v g:/nextcloud/:/var/www/html -e MYSQL_DATABASE='DATABASENAME' -e MYSQL_USER='MYSQLUSERNAME' -e MYSQL_PASSWORD='MYSQLPASSWORD' -e MYSQL_HOST=host.docker.internal:3306 -e NEXTCLOUD_TABLE_PREFIX=nc_ nextcloud
  2. Check container whether created
    powershell docker container ls -a
  3. Start container
    powershell docker start nc
  4. Visit http://127.0.0.1:8082/
  5. Register your admin account
  6. It shows Error Your data directory is readable by other users.Please change the permissions to 0770 so that the directory cannot be listed by other users.Open file config.php under directory:/var/www/html/config(for this instance :G:\nextcloud\config) .
  7. Add 'check_data_directory_permissions' => false, before the closing parenthesis);
    You can find more info in the config.sample.php
    Ref: #236
  8. Restart container
    powershell docker restart nc
    1.Done

All 3 comments

I installed nextcloud on docker4win just now.
snipaste_2018-05-09_15-41-28

Docker:18.03.1-ce-win65 (17513);
Database:MySQL.

Database is on my host,port 3306./data volume is storage on G:/nextcloud.

Here is my installation:

  1. Download nextcloud image
    ```powershell

docker pull nextcloud
```

  1. Create container
    powershell docker create --name nc -p 8082:80 -v g:/nextcloud/:/var/www/html -e MYSQL_DATABASE='DATABASENAME' -e MYSQL_USER='MYSQLUSERNAME' -e MYSQL_PASSWORD='MYSQLPASSWORD' -e MYSQL_HOST=host.docker.internal:3306 -e NEXTCLOUD_TABLE_PREFIX=nc_ nextcloud
  2. Check container whether created
    powershell docker container ls -a
  3. Start container
    powershell docker start nc
  4. Visit http://127.0.0.1:8082/
  5. Register your admin account
  6. It shows Error Your data directory is readable by other users.Please change the permissions to 0770 so that the directory cannot be listed by other users.Open file config.php under directory:/var/www/html/config(for this instance :G:\nextcloud\config) .
  7. Add 'check_data_directory_permissions' => false, before the closing parenthesis);
    You can find more info in the config.sample.php
    Ref: #236
  8. Restart container
    powershell docker restart nc
    1.Done

I'm getting Error response from daemon: Drive is unshareable on step 2. any ideas?

I'm getting Error response from daemon: Drive is unshareable on step 2. any ideas?

g:/nextcloud/

"G" drive in your PC ???

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SQGE picture SQGE  路  3Comments

DrMurx picture DrMurx  路  4Comments

christianvw picture christianvw  路  3Comments

mahnunchik picture mahnunchik  路  3Comments

raimund-schluessler picture raimund-schluessler  路  3Comments