简体   繁体   English

Docker-compose命令在Windows 10上不起作用

[英]Docker-compose command not working on Windows 10

I have Docker for Windows 10 and always and it has worked well. 我一直在使用Windows 10的Docker,并且运行良好。

But today not working anymore. 但是今天不再工作了。 If I give a docker-compose up nothing happens, it just goes to the bottom line. 如果我放弃docker-compose,什么也没有发生,这只是最重要的一点。 The commands docker-compose up, docker-compose build, docker-compose -v, nothing happens, no error, just goes to the bottom line. 命令docker-compose up,docker-compose build,docker-compose -v,什么也没有发生,没有错误,只是进入最底线。

I uninstalled docker and I disabled Hyper-V, I installed all again and it did not work. 我卸载了docker并禁用了Hyper-V,我又重新安装了它,但它不起作用。

One example of the docker-compose.yml docker-compose.yml的一个示例

version: '3'

volumes:
  data:
services:
  db:
    image: mysql:5.7
    ports:
      - "3306:3306"
    volumes:
      - data:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=db

Thanks! 谢谢!

Update: I installed a version previous and I have the same thing. 更新:我以前安装了一个版本,但我有同样的想法。

Update2: I downgrade to version 17.12.0-ce-win47 and it's works. Update2:我降级到版本17.12.0-ce-win47,并且可以使用。 More people with the same problem here. 更多的人在这里遇到同样的问题。 https://github.com/docker/for-win/issues/2699 https://github.com/docker/for-win/issues/2699

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.06.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d64c661f1d51c48782c9cec8fda7604785f93587
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.93-linuxkit-aufs
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d0f1009
ID: FTO7:ABFI:2B7X:5KYO:R4YA:R4QI:62LR:GYSA:QOWS:A4DO:RKOK:45WR
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 22
 Goroutines: 46
 System Time: 2018-10-10T00:45:47.3809481Z
 EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

For other people with the same problem, I downgrade to version 17.12.0-ce-win47 and it works. 对于其他有相同问题的人,我将其降级到版本17.12.0-ce-win47,它可以工作。 Not is necessarily a solution, but I can work. 不一定是解决方案,但我可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM