Categories
Mastering Development System & Network

Docker running on a amazonlinux:2 with an apache webserver returns 503 service unavailable

Setting up a docker container containing a apache webserver running on a linux OS. I am trying to setup a docker environment where i run an apache webserver at a amazonlinux:2 OS through docker. I am able to set up everything but when i load the url on localhost it returns a “503 service unavailable”. […]

Categories
Mastering Development

docker can’t access container from localhost

I can’t access container app from my host. It is just a simple ExpressJS app I built for testing. I am running a Windows 10 Pro with Hyper-V. This is the result of docker version Client: Docker Engine – Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 […]

Categories
Development

add new postgres server in pgadmin on docker

i’m new to docker and postgres. i configured the postgres and pgadmin4 service containers and i want to create a new server in pgadmin. i get the ip of the postgres container by inspect instruction as 172.18.0.2 my postgres inspect result is as follows: [ { “Id”: “8a898f76c4ed5bc9e003c5d0be8ab67f7f7045fe1cc4c1cb82cc263136360c0a”, “Created”: “2020-02-11T22:54:11.018152083Z”, “Path”: “docker-entrypoint.sh”, “Args”: [ “postgres” […]

Categories
Development

Docker can’t access app in Host when port binding 8080

I have a docker image with a Java spring boot application which starts and run with no problem in a docker container at the port 8080 as you can see in a portion of the logs: 2020-02-24 02:09:07.906 INFO : Tomcat started on port(s): 8080 (http) with context path ‘/web-app’ 2020-02-24 02:09:07.909 INFO : Started […]

Categories
Development Docker System & Network

Docker Swarm’s overlay network DNS consistently resolving hostnames to an IP address one number lower than a container’s actual IP

I’m having a very odd reproducible issue with Docker Swarm. I’m attempting to deploy a Dgraph server cluster via Docker Swarm across four LXD containers. For context, Dgraph Zero is the control server and each Dgraph Alpha server does the lifting and must connect to a Zero server on launch. Ratel is just a web […]

Categories
Development Docker MVC Python

Send post-request from dockerized jar to local python-service

I am running a dockerized jar and a local flask-service on my Mac. The jar represents a web-app for a musical catalogue and the flask-service transforms musical notes into a xml-based music-encoding format. The service is called when the user has clicked on the download button. Starting the application through PyCharm and IntelliJ works fine, […]