HttpAnsweringMachine icon indicating copy to clipboard operation
HttpAnsweringMachine copied to clipboard

Running on docker without custom proxy

Open kendarorg opened this issue 2 years ago • 1 comments

  • https://paraspatidar.medium.com/add-self-signed-or-ca-root-certificate-in-kubernetes-pod-ca-root-certificate-store-cb7863cb3f87
  • setting anyway the dns
  • run the docker build without docker compose
  • or setup a k8s with dns

docker network create [OPTIONS] NETWORK You can also use the docker run --network= option to start a container and immediately connect it to a network sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' portainer

kendarorg avatar Oct 26 '23 12:10 kendarorg

Exciting new stuff!!

https://www.baeldung.com/ops/docker-assign-static-ip-container

sudo docker network create \
  --driver=bridge \
  --subnet=192.168.1.0/24 \
  --ip-range=192.168.1.0/25 \
  --gateway=192.168.1.127 \
  mynetwork

sudo docker run -it --net mynetwork --ip 192.168.1.128 --name testbash ubuntu bash

sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' testbash 

apt-get update \
apt-get install net-tools  curl  traceroute
ifconfig
traceroute www.google.com


sudo docker run -it --net mynetwork --name doublebash  ubuntu bash
apt-get update \
apt-get install net-tools  curl  traceroute
ifconfig
traceroute www.google.com

kendarorg avatar Oct 30 '23 16:10 kendarorg