Category : port

I’ve recently started learning docker and after following the tutorial, I ran the getting started command "docker run -d -p 80:80 docker/getting-started" opened up port localhost:80 and saw the docker getting started page. However, I had to run my client’s project, whose port was mapped to localhost:80 as well. On account of this, I’m unable ..

Read more

docker run –name db -p 5432:5432 –network=db -v "$PWD:/var/lib/postgresql/data" -e POSTGRES_PASSWORD=password -d postgres:alpine After that I don’t get running container.It’s stopping.I can’t run it and when I write docker ps -a so there isn’t port number in this container.How to fix it? Source: Docker..

Read more

I’ve deployed Django+Vue application on server and changed psql ports from "5432:5432" to "5433:5433" because I’m running other applications on this server and this port is already in use, now I have a problem when making api requests, the error is: Is the server running on host "db" (ip) and accepting backend | TCP/IP connections ..

Read more

I have a problem executing the command curl localhost:5000, can someone give me some help? [email protected]:~/latihan04$ sudo docker run -d -p 5000:5000 –name flask04 jesaya/flask-latihan04 14acc48334060ba79c9f3dd5eaafcc0ea0767d29c531eac0d48ae6649af54e2c [email protected]:~/latihan04$ curl localhost:5000 curl: (7) Failed to connect to localhost port 5000: Connection refused [email protected]:~/latihan04$ app.py script from flask import Flask app = Flask(__name__) @app.route(‘/’) def hello_world(): return ‘Hey, ..

Read more

I am using Docker, Jenkins and Nexus on a project. I am initializing docker-compose.yml like this: sudo docker-compose -f ~ / docker-compose.yml up –build –detach docker-compose.yml version: ‘3.7’ services: nexus: container_name: nexus image: sonatype/nexus3:latest restart: always privileged: true user: root ports: – 8081:8081 volumes: – /opt/nexus:/nexus-data jenkins: container_name: jenkins image: jenkins/jenkins:lts restart: always privileged: true ..

Read more

I try to run Docker. I created file server.js: ‘use strict’; const express = require(‘express’); // константы const port = 8080; const host = ‘0.0.0.0’; // приложение const app = express(); app.get(‘/’, (req, res) => { res.send(‘Hello World’); }); app.listen(port, host); console.log(`running on http://${host}:${port}`); I created package.json and init package.lock by npm install { “name”: ..

Read more