I get from google search that, if you use Kubernettes, you can do this: – job_name: kubernetes-node-exporter kubernetes_sd_configs: – role: node relabel_configs: # Host name – source_labels: [__meta_kubernetes_node_name] target_label: instance But I use docker swarm, so I’d like to expose __meta_hostname, so I can do this: – job_name: docker-swarm-node-exporter relabel_configs: # Host name – source_labels: ..

Read more

im learning docker and go now but i got the problem when i docker run with this docker run –rm -p 8080:8080/tcp –env-file .env my-project:latest here are some of my .env code. i use docker desktop on windows, is it not possible to run docker on localhost in windows? DB_HOST=127.0.0.1 DB_USERNAME=root DB_NAME=mydbs DB_PASS=root123 AUTH_GEN_URL=https://api.learning.mydbs.id anyone ..

Read more

I`m having troubles to connect my crud app using Flask and SQLAlchemy with a Postgres Database inside a Docker container. I’m getting this error: psycopg2.OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? Here is my app code: # app.py import ..

Read more

machine info: nectar virtual machine instance The operating system: Ubuntu 20.04 LTS (Focal) amd64 security group: default + ssh + http docker image info: ibmcom/couchdb3:3.1.1 command line typed and output: command: docker pull ibmcom/couchdb3:${VERSION} where version is set equal 3.1.1 output: 3.1.1: Pulling from ibmcom/couchdb3 Digest: sha256:784a43d1acd4cfa78a5fb4992a2d7a6aecec03d1b6a6458f443399abb8f38902 Status: Image is up to date for ibmcom/couchdb3:3.1.1 ..

Read more

For a simple app with Django, Python3, Docker on mac Dockerfile FROM python:3 ENV PYTHONUNBUFFERED=1 RUN mkdir /code WORKDIR /code COPY requirements.txt /code/ RUN python3 -m pip install -r requirements.txt CMD python3 manage.py runserver COPY . /code/ docker-compose.yml version: "3.9" services: # DB db: image: mysql restart: always environment: MYSQL_ROOT_PASSWORD: ‘****’ MYSQL_USER: ‘****’ MYSQL_PASSWORD: ‘****’ ..

Read more