Hi,
I am running warden on Docker version 20.10.23, build 7155243 on Ubuntu 20.04.5 LTS OS
warden
| | / /___ _/ / ____
| | /| / / __ `/ / __ / _ / __
| |/ |/ / // / / / // / / / / /
|/|_/_,// _,/___// //
Warden version 0.12.0
Usage:
command [options] [arguments]
Options:
-h, --help Display this help menu
Commands:
svc Orchestrates global services such as traefik, portainer and dnsmasq via docker-compose
env-init Configure environment by adding ‘.env’ file to the current working directory
env Controls an environment from any point within the root project directory
db Interacts with the db service on an environment (see ‘warden db -h’ for details)
redis Interacts with the redis service on an environment (see ‘warden redis -h’ for details)
install Initializes or updates warden configuration on host machine
shell Launches into a shell within the current project environment
debug Launches debug enabled shell within current project environment
sign-certificate Signs a wildcard certificate including all passed hostnames on the SAN list
version Show version information
warden version
0.12.0
Is there a way to publish port 80 outside docker container?
a7c9e59722f8 wardenenv/nginx:1.16 “/bin/sh -c 'envsubs…” About an hour ago Up About an hour 80/tcp fiserv245_nginx_1
For example host IP:- 192.168.0.10 and port 80 to be mapped to a7c9e59722f8 and port 80
Thanks in Advance,
Best Regards,
Kaushal
In the documentation said ways to publish the port
Container networking | Docker Documentation.
For example, if you want to use your port 80 of your computer use 80:DockerPort, to access only use localhost without a port.
In other case use ComputerPort:80
@marcelo130102 Thanks
# netstat -anp | grep 443
tcp 0 0 127.0.0.1:443 0.0.0.0:* LISTEN 1841/docker-proxy
unix 3 [ ] STREAM CONNECTED 18443 432/systemd-udevd
unix 3 [ ] STREAM CONNECTED 44335 2962/containerd-shi
# netstat -anp | grep 80
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 1869/docker-proxy
unix 2 [ ACC ] STREAM LISTENING 36640 1738/containerd-shi /run/containerd/s/44d03b3fb22130708f20177ff516482cf70aa10ab804855bc09656f68bf048c9
unix 2 [ ACC ] STREAM LISTENING 19805 1/init /run/uuidd/request
unix 2 [ ACC ] STREAM LISTENING 41460 2459/containerd-shi /run/containerd/s/4eb52dfa0a43742e387d46739f5d907dd262356e9fefdaae6affe1e80446ef95
unix 2 [ ACC ] STREAM LISTENING 43845 3161/containerd-shi /run/containerd/s/e6e9d0e5349f9805e6d4c8fec426271d7621a1741172ef637b53bc82d975f254
unix 3 [ ] STREAM CONNECTED 44876 3161/containerd-shi /run/containerd/s/e6e9d0e5349f9805e6d4c8fec426271d7621a1741172ef637b53bc82d975f254
unix 3 [ ] STREAM CONNECTED 41515 2459/containerd-shi /run/containerd/s/4eb52dfa0a43742e387d46739f5d907dd262356e9fefdaae6affe1e80446ef95
unix 3 [ ] STREAM CONNECTED 37253 1738/containerd-shi /run/containerd/s/44d03b3fb22130708f20177ff516482cf70aa10ab804855bc09656f68bf048c9
unix 3 [ ] DGRAM 20723 580/systemd-timesyn
unix 3 [ ] DGRAM 20722 580/systemd-timesyn
unix 3 [ ] STREAM CONNECTED 20783 580/systemd-timesyn
unix 3 [ ] DGRAM 20725 580/systemd-timesyn
unix 3 [ ] DGRAM 20724 580/systemd-timesyn
unix 3 [ ] STREAM CONNECTED 42080 2496/containerd-shi /run/containerd/s/cb5034b043fa1f22b44461f3d33e83076a3fdb8d6287584da3db5b8a6d1f506f
unix 2 [ ] DGRAM 20719 580/systemd-timesyn
unix 3 [ ] STREAM CONNECTED 20711 580/systemd-timesyn
#
Is there a way to enable 0.0.0.0/0 or Docker host IP :- 192.168.0.207 instead of 127.0.0.1:80 and 127.0.0.1:443 in docker-proxy process as per the output above? Please suggest me.
Thanks in Advance,
Best Regards,
Kaushal