I am currently trying to connect to the Docker API with the /var/run/docker.sock file. curl -X GET –unix-socket /var/run/docker.sock http://localhost/images/json However, the curl version I use does not support –unix-socket and upgrading curl it is not an option. Is there any way to do the same using tools like netcat? Without any fancy stuff. Source: ..
I try to implement logging in my django project (Django/Postgresql/Docker/Celery) but got an error when I deploy my project in linux server (but it work locally) FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/src/app/logs/debug.log’ I’ve read about a solution in this SO post: Django: Unable to configure handler 'syslog' but fisrt I do not ..
I have 2 docker containers, one of them is postgres. I am trying to call postgres from another one: nc postgres 5432 -c ‘psql -U postgres -t -c "SELECT datname FROM pg_catalog.pg_database WHERE datname = ‘$DATABASE_NAME’;"’ or like that psql -U postgres -t -c "SELECT datname FROM pg_catalog.pg_database WHERE datname = ‘$DATABASE_NAME’;" | nc postgres ..
I have started my nc utility inside a container named “ain_container” and exposed two proxies to outside as shown below with the ubuntu 14.04 image. Then I started the nc utility with two ports as shown below Now I Have created two more containers with ubuntu 14.04 image and trying to access and listen in ..