2016-08-08 19 views
1

Wenn ich versuche, diese Befehle zum Starten von Docker ausführen, erhalten Sie diese Fehler.Fehler: für couchbase-db Treiber fehlgeschlagen Programmierung externe Konnektivität

dann mache ich netstat:

:~/development/dfraud/docker/dev$ netstat -l 
    Active Internet connections (only servers) 
    Proto Recv-Q Send-Q Local Address   Foreign Address   State  
    tcp  0  0 localhost:mysql   *:*      LISTEN  
    tcp  0  0 localhost:63342   *:*      LISTEN  
    tcp  0  0 vegan:domain   *:*      LISTEN  
    tcp  0  0 *:37367     *:*      LISTEN  
    tcp  0  0 localhost:6942   *:*      LISTEN  
    tcp6  0  0 [::]:28329    [::]:*     LISTEN  
    tcp6  0  0 [::]:11210    [::]:*     LISTEN  
    tcp6  0  0 [::]:3310    [::]:*     LISTEN  
    tcp6  0  0 [::]:8091    [::]:*     LISTEN  
    tcp6  0  0 [::]:8092    [::]:*     LISTEN  
    tcp6  0  0 [::]:8093    [::]:*     LISTEN  
    tcp6  0  0 [::]:40286    [::]:*     LISTEN 

ich sehe 11210 gibt. es scheint leer zu sein.

und keine anderen Behälter:

docker ps -a 
CONTAINER ID  IMAGE       COMMAND     CREATED    STATUS      PORTS     NAMES 
86fa576a95f18  qq/baseline:hepsiburada "/home/infoowl/instal" 3 days ago   Exited (1) 26 minutes ago       dev_fraud-app_1 
c113b94cf8817  mysql:5.7.11     "docker-entrypoint.sh" 3 days ago   Up 16 minutes    0.0.0.0:3310->3306/tcp dev_mysql-db_1 
a3a39676f9f9c  couchbase/server    "/entrypoint.sh couch" 3 days ago   Exited (128) 11 hours ago       dev_couchbase-db_1 
b899a05f04ee7  hello-world     "/hello"     6 days ago   Exited (0) 6 days ago        cranky_hypatia 
bfa004e39fbf1  hello-world     "/hello"     6 days ago   Exited (0) 6 days ago        modest_keller 
37e6efc5b2ae9  mysql/mysql-server    "/entrypoint.sh mysql" 13 days ago   Exited (0) 9 days ago        demo-mysql 
cad1af1b49b10  c478557s729bb     "sh -c 'cd /root/proj" 8 weeks ago   Exited (0) 3 weeks ago        dev_turktelekom-app_1 
9d32d908f8264  mysql:5.7.11     "docker-entrypoint.sh" 8 weeks ago   Exited (0) 3 weeks ago        dev_ttg-mysql-db_1 
[email protected]:~/development/dfraud/docker/dev$ 

Whaat ist Problem?

+0

Ich bin auf Ubuntu nicht auf der Maschine – fff

Antwort

2

Dies könnte weniger im Zusammenhang mit couchbase-db, und mehr ro docker-komponieren.
See:

Es kann passieren, wenn Sie Hyper-V (Windows) oder Mac VM VirtualBox nicht entfernen, während verwenden.

Sie haben auch diesen Kommentar:

I deleted all my custom networks, removed all my containers and then deleted docker/network/files/local-kv.db and restarted my machine.

Seien Sie gewarnt:

This issue is really two issues:

  1. There's a confusing error message when a port is already in use by another application (e.g. Apache). That's been fixed in Docker 1.12.0 (it now explicitly says "port is already allocated").

  2. After stopping containers, the ports they use are sometimes still mapped on localhost.

In Ihrem Fall, da Sie auf Ubuntu (kein VM beteiligt ist) sind, und die Nachricht "port is already allocated "müssen Sie einen anderen Dienst verwenden, der diesen Anschluss verwendet.