我發出這個命令運行碼頭工人在守護進程模式
sudo的碼頭工人守護-H UNIX:///var/run/docker.sock -H TCP:// XXXX:8400 -H TCP:// YYYYY: 2375 &
它工作正常。但它不會返回到我的控制檯客戶端。它沒有完成命令。
WARN[0000] /!\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\
WARN[0000] /!\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\
INFO[0000] [graphdriver] using prior storage driver "aufs"
INFO[0000] Graph migration to content-addressability took 0.00 seconds
INFO[0000] Firewalld running: false
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
WARN[0000] Your kernel does not support swap memory limit.
INFO[0000] Loading containers: start.
.
INFO[0000] Loading containers: done.
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon commit=20f81dd execdriver=native-0.2 graphdriver=aufs version=1.10.3
INFO[0000] API listen on 172.31.16.21:2375
INFO[0000] API listen on /var/run/docker.sock
INFO[0000] API listen on 172.31.16.21:8400
這次我可以從外部客戶端訪問它。但如果殺死那個控制檯。我無法從外部客戶端訪問它。
這方面的任何解決方案?
不知道爲什麼搬運工成爲非常複雜的初學者:)
嘗試添加-d到命令 –
請注意,它不只是碼頭,它是碼頭守護程序。 如果嘗試,它會給出 - >標誌提供但未定義:-d –