Category : networking

I am trying to access ouside ports from the docker container using tomcat. My dockerfile looks like this: FROM tomcat:9.0-alpine # Remove default server configuration RUN rm /usr/local/tomcat/conf/server.xml # Add new server configuration COPY /path/to/conf/server.xml /usr/local/tomcat/conf/server.xml # Export backend port EXPOSE 8080 # Start tomcat server CMD chmod +x /usr/local/tomcat/bin/catalina.sh && catalina.sh run Seems simple. ..

Read more

Unfortunately, I cannot figure out: "which pool" overlaps with which "other one" On "which address space" …and: "what exactly is overlapping here" … so, I do have some problems with performing the right measures and modifications… Context: docker swarm, running on three nodes (one master, two workers, locally distributed VPS Ubuntu machines with docker & ..

Read more

java.lang.NullPointerException at java.base/java.lang.Thread.run(Thread.java:829) WARN MetricsSystem: Stopping a MetricsSystem that is not running Exception in thread Thread-5: Error Traceback (most recent call last): File "/opt/conda/lib/python3.9/threading.py", line 973, in _bootstrap_inner self.run() File "/opt/conda/lib/python3.9/threading.py", line 910, in run self._target(*self._args, **self._kwargs) File "/home/jovyan/pySpark.py", line 23, in receive_stream sc = SparkContext(appName="StreamTwitter") File "/opt/conda/lib/python3.9/site-packages/pyspark/context.py", line 146, in __init__ self._do_init(master, appName, sparkHome, ..

Read more

I have setup in which service_main stream logs on socket 127.0.0.1:6000 Simplified docker-compose.yml looks like that: version: "3" networks: some_network: driver: bridge ipam: driver: default config: – subnet: 100.100.100.0/24 gateway: 100.100.100.1 services: service_main: image: someimage1 networks: some_network: ipv4_address: 100.100.100.2 service_listener: image: someimage2 networks: some_network: ipv4_address: 100.100.100.21 command: listen 100.100.100.2:6000 My assumption that it SHOULD work ..

Read more

From the Docker documentation: –publish or -p flag. Publish a container’s port(s) to the host. –expose. Expose a port or a range of ports. –link. Add link to another container. Is a legacy feature of Docker. It may eventually be removed. I am using docker-compose with several networks. I do not want to publish any ..

Read more

I need to restrict connections to a docker container. The docker documentation states the following: iptables -I DOCKER-USER -i ext_if ! -s 192.168.1.0/24 -j DROP After this the DOCKER-USER chain starts looking like this: Chain DOCKER-USER (1 references) target prot opt source destination DROP all — !192.168.1.0/24 anywhere RETURN all — anywhere anywhere This works ..

Read more