Docker Community Forums

Share and learn in the Docker community.

It's necessary restart my pc to run the container


(Ivancarrancho) #1

$ docker-compose up
"my_container_name"_redis_1 is up-to-date
"my_container_dbname" is up-to-date
Starting “my_container_name”

ERROR: for web driver failed programming external connectivity on endpoint “my_container_name” (6eb2155d1342cf115eed7dc3b85e16024414dcd71d1e0848c33ff3993722c725): Error starting userland proxy: Failed to bind SOCK_STREAM 0.0.0.0:35729 Unix.Unix_error(Unix.EADDRINUSE, “bind”, “”)
Traceback (most recent call last):
File “”, line 3, in
File “compose/cli/main.py”, line 63, in main
AttributeError: ‘ProjectError’ object has no attribute 'msg’
docker-compose returned -1

that’s the issue, I tried stop docker and restart again, refresh my ip address , update docker (beta 12), stop the container and run again, but the issue keeps until I restart.

some idea?


(Alexandre) #2

What’s the output of: pinata diagnose -u

Thanks,
Alexandre


(Ivancarrancho) #3

Thanks for answer me,

$ pinata diagnose -u
OS X: version 10.10.5 (build: 14F1713)
Docker.app: version v1.11.1-beta12
Running diagnostic tests:
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160518-081024.tar.gz
Most specific failure is: No error was detected
Your unique id is: FFE941D5-BC3D-4745-9893-F6077DCD7C51
Please quote this in all correspondence.

but right now the issue is not happening, (because I restart), when the issue appears, rerun the diagnose…


(Ivancarrancho) #4

Hi again,

now i have the issue, and the answer is:

$ pinata diagnose -u
OS X: version 10.10.5 (build: 14F1713)
Docker.app: version v1.11.1-beta12
Running diagnostic tests:
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160520-141735.tar.gz
Most specific failure is: No error was detected

Your unique id is: FFE941D5-BC3D-4745-9893-F6077DCD7C51
Please quote this in all correspondence.

please if you know what is happening in my container tell me…


(Ivancarrancho) #5

Hi everyone, I solve it:

my docker-compose.yml is

version: '2’
services:
web:
build: .
image: proyect
command: python manage.py runserver 0.0.0.0:8000
ports:
- “8000:8000”
- "35729:35729"
volumes:
- .:/code
depends_on:
- bower
- sass
- migration
- redis
- db
redis:
image: redis:3.0
db:
image: postgres:9.4
volumes:
- .:/tmp/data/
npm:
image: proyect
command: npm install
volumes:
- .:/code
bower:
image: proyect
command: bower install --allow-root
volumes:
- .:/code
depends_on:
- npm
bundle:
image: proyect
command: bundle install
volumes:
- .:/code
sass:
image: proyect
command: gulp compile-sass
volumes:
- .:/code
jsx:
image: proyect
command: gulp compile-jsx
volumes:
- .:/code
migration:
image: proyect
command: python manage.py migrate --noinput
volumes:
- .:/code
depends_on:
- db
clean:
image: proyect
command: find . -name ‘*.pyc’ -delete
volumes:
- .:/code


I replace in ports - “35729:35729” to: - "5729:5729"
looks like:
ports:
- “8000:8000”
- “5729:5729”

and runs ok