2016-12-28 77 views
0

我試圖設置此https://github.com/jwasham/computer-science-flash-cards在本地PC使用泊塢窗,但之後我建立了我的形象沒有定義-d,當我嘗試標誌提供,但在運行搬運工容器

docker run -d -p 8000:8000 --name cs-flash-cards cs-flash-cards 

它說

flag provided but not defined: -d 

任何想法如何解決此問題並運行此容器?

EDIT(上塢窗信息;泊塢窗版本,我得到以下信息):

Containers: 0 
Running: 0 
Paused: 0 
Stopped: 0 
Images: 10 
Server Version: 1.12.5 
Storage Driver: devicemapper 
Pool Name: docker-202:1-312980-pool 
Pool Blocksize: 65.54 kB 
Base Device Size: 10.74 GB 
Backing Filesystem: xfs 
Data file: /dev/loop0 
Metadata file: /dev/loop1 
Data Space Used: 877.5 MB 
Data Space Total: 107.4 GB 
Data Space Available: 2.019 GB 
Metadata Space Used: 1.913 MB 
Metadata Space Total: 2.147 GB 
Metadata Space Available: 2.019 GB 
Thin Pool Minimum Free Space: 10.74 GB 
Udev Sync Supported: true 
Deferred Removal Enabled: false 
Deferred Deletion Enabled: false 
Deferred Deleted Device Count: 0 
Data loop file: /var/lib/docker/devicemapper/devicemapper/data 
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device. 
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata 
Library Version: 1.02.110 (2015-10-30) 
Logging Driver: json-file 
Cgroup Driver: cgroupfs 
Plugins: 
Volume: local 
Network: null host bridge overlay 
Swarm: inactive 
Runtimes: runc 
Default Runtime: runc 
Security Options: apparmor seccomp 
Kernel Version: 4.4.0-45-generic 
Operating System: Ubuntu 16.04.1 LTS 
OSType: linux 
Architecture: x86_64 
CPUs: 1 
Total Memory: 990.7 MiB 
Name: ip-172-31-33-253 
ID: QPUK:E7BB:Y2PW:MPJR:L2X4:4AMT:VHAT:SOXK:3A2N:UKI2:ZXRK:QF4S 
Docker Root Dir: /var/lib/docker 
Debug Mode (client): false 
Debug Mode (server): false 
Registry: https://index.docker.io/v1/ 
WARNING: No swap limit support 
Insecure Registries: 
127.0.0.0/8 
Client: 
Version:  1.12.5 
API version: 1.24 
Go version: go1.6.4 
Git commit: 7392c3b 
Built:  Fri Dec 16 02:42:17 2016 
OS/Arch:  linux/amd64 

Server: 
Version:  1.12.5 
API version: 1.24 
Go version: go1.6.4 
Git commit: 7392c3b 
Built:  Fri Dec 16 02:42:17 2016 
OS/Arch:  linux/amd64 
+1

post'docker info;碼頭版本'和主機的操作系統,也許相關https://github.com/docker/docker/issues/20081 – user2915097

+0

感謝您的迴應。我已經用所需的數據編輯了我的描述 – Krash

+0

好吧,所以我去了那個鏈接,我用守護進程替換了-d,它解決了這個問題。謝謝。 – Krash

回答

0

只是爲了誰擁有了同樣的問題下一個人。

這是用於Ubuntu LTS上的SystemD,而docker.service文件 是修復程序。

如果您在Centos7上,可能會有一個名爲override.conf的額外文件 這用於覆蓋systemd中的docker.service。 這個文件還-d標誌 ,位於 /etc/systemd/system/docker.service.d/override.conf

與守護程序取代-d這裏 做systemctl守護重載和碼頭工人將啓動。