-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zabbix-server 4 not a valid Windows path #393
Comments
Please remove these lines from compose file and try again. |
I removed from compose file but it still shows the same error.
PS D:\docker\zabbix-docker> docker-compose -f .\docker-compose_v3_alpine_mysql_latest.yaml up -d ERROR: for zabbix-server Cannot create container for service zabbix-server: b'Mount denied:\nThe source path "\\etc\\localtime:/etc/localtime"\nis not a valid Windows path' |
remove all lines with these volumes :-) |
:-) I did that, but unfortunately it didn't help. Do you have any other idea? |
it is impossible, because only yaml file has such mount volume information. |
Please check this yaml file? Maybe I'm missing something. |
Looks good! Are you able to run "docker run -it --rm centos bash"? |
yes, it works. |
Hmmm .... you attached docker-compose_v3_centos_mysql_latest .yaml, but trying to run alpine version. |
Thanks. Attached modified compose file which is working on Windows 10 Pro. (rename file removing .txt extension) Modified:
|
this problem was not solved in a code |
these files are for example, just remove these "Linux-style" lines |
at the same time there more than 1 problems with those examples: postgress sql container cannot get access to the folder Otherwise I would like to see any notes in a documentation (link bellow) that example will not work on Docker on Windows and will require deep modifications Simple solution in a code - add /etc/time congiguration to the repo and modify links in yaml files to use that time configs |
where from the output? What is that? |
Reproduction: |
So, it is related to PostgreSQL. It is known PostgreSQL issue: docker-library/postgres#435 and docker/for-win#445 |
Alexey, thanks for links Issue was in yaml file stored on zabbix repo (at least solution was in modification zabbix sample) |
I'm trying to start Zabbix on Windows 10 Pro Docker Version 18.06.1-ce-win73 (19507) which is switched to run Linux containers.
Error: Cannot create container for service zabbix-server: b'Mount denied:\nThe source path "\\etc\\localtime:/etc/localtime"\nis not a valid Windows path'
Is it possible to solve this issue for windows environment? It works on Centos 7 virtual machine, but I want to use on docker for Windows.
Commands I used:
git clone https://github.com/zabbix/zabbix-docker
git checkout trunk
docker-compose -f .\docker-compose_v3_alpine_mysql_latest.yaml pull
docker-compose -f .\docker-compose_v3_alpine_mysql_latest.yaml up -d
PS D:\docker\zabbix-docker> docker-compose -f .\docker-compose_v3_alpine_mysql_latest.yaml up -d
Creating network "zabbix-docker_zbx_net_backend" with driver "bridge"
Creating network "zabbix-docker_zbx_net_frontend" with driver "bridge"
Creating network "zabbix-docker_default" with the default driver
Creating zabbix-docker_zabbix-snmptraps_1 ... done
Creating zabbix-docker_zabbix-java-gateway_1 ... done
Creating zabbix-docker_db_data_mysql_1 ...
Creating zabbix-docker_mysql-server_1 ... error
Creating zabbix-docker_db_data_mysql_1 ... done
ERROR: for zabbix-docker_mysql-server_1 Cannot create container for service mysql-server: b'Drive has not been shared'
ERROR: for mysql-server Cannot create container for service mysql-server: b'Drive has not been shared'
ERROR: Encountered errors while bringing up the project.
PS D:\docker\zabbix-docker> docker-compose -f .\docker-compose_v3_alpine_mysql_latest.yaml up -d
Starting zabbix-docker_db_data_mysql_1 ...
zabbix-docker_zabbix-java-gateway_1 is up-to-date
Starting zabbix-docker_db_data_mysql_1 ... done
Creating zabbix-docker_mysql-server_1 ... done
Creating zabbix-docker_zabbix-server_1 ... error
** ERROR: for zabbix-docker_zabbix-server_1 Cannot create container for service zabbix-server: b'Mount denied:\nThe source path "\\etc\\localtime:/etc/localtime"\nis not a valid Windows path'
ERROR: for zabbix-server Cannot create container for service zabbix-server: b'Mount denied:\nThe source path "\\etc\\localtime:/etc/localtime"\nis not a valid Windows path' **
ERROR: Encountered errors while bringing up the project.
The text was updated successfully, but these errors were encountered: