Author : Peter

I’m using a virtual machine on Windows 10 with this config: Memory 7.8 GiB Processor Intel® Core™ i5-6600K CPU @ 3.50GHz × 3 Graphics llvmpipe (LLVM 11.0.0, 256 bits) Disk Capcity 80.5 GB OS Ubuntu 20.10 64 Bit Virtualization Oracle I installed docker for Ubuntu as described in the official documentation. I pulled the docker ..

Read more

I created a docker context. ❯ docker context ls NAME TYPE DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR default moby Current DOCKER_HOST based configuration unix:///var/run/docker.sock swarm nix * moby ssh://nix.example.com swarm "Normal" docker command works. ❯ docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES But docker-compose doesn’t. ❯ docker-compose –log-level DEBUG up Using ..

Read more

I have a Django project and a postgres database but I cannot dockerize that. Here is the docker-compose.yml : version: ‘3’ services: database: image: postgres restart: always env_file: – database.env web: build: . command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py createsu && python manage.py runserver 0.0.0.0:8000" volumes: volumes: – ..

Read more

I don’t achieve to communicate with my database postgres using Docker and Django. Here is my docker-compose.yml : version: ‘3’ services: web: container_name: web build: context: ./web dockerfile: Dockerfile command: python manage.py runserver 0.0.0.0:8000 volumes: – ./web/:/usr/src/web/ ports: – 8000:8000 – 3000:3000 – 35729:35729 env_file: – database.env stdin_open: true depends_on: – database database: container_name: database ..

Read more

I am using Docker but it does not work. I don’t understand why… Here is my docker-compose.yml : # docker-compose.yml version: ‘3’ services: database: image: "postgres" # use latest official postgres version env_file: – database.env # configure postgres volumes: – database-data:/var/lib/postgresql/data/ # persist data even if container shuts down volumes: database-data: # named volumes can ..

Read more

I am using Docker but it does not work. I don’t understand why… Here is my docker-compose.yml : # docker-compose.yml version: ‘3’ services: database: image: "postgres" # use latest official postgres version env_file: – database.env # configure postgres volumes: – database-data:/var/lib/postgresql/data/ # persist data even if container shuts down volumes: database-data: # named volumes can ..

Read more

I I am using Docker and I got this message : Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? Here is my docker-compose : version: ‘3.7’ services: web: container_name: web build: context: . dockerfile: Dockerfile command: python manage.py runserver 0.0.0.0:8000 volumes: – .:/usr/src/web/ ports: – 8000:8000 – 3000:3000 ..

Read more