abesnier / docker-guacamole

A self-contained guacamole docker container for x64. Remotely connect over SSH, RDP or VNC using HTML5.
https://hub.docker.com/r/abesnier/guacamole
GNU General Public License v3.0
78 stars 14 forks source link

Container not picking up DHCP IP #13

Closed Forensics-Ninja closed 1 year ago

Forensics-Ninja commented 1 year ago

Hey, I have tried to deploy the container several times, however, it keeps defaulting to the ip 172.18.0.2 not is not picking up an ip from my DHCP server.

Any thoughts?

abesnier commented 1 year ago

Hi.

By default, containers are not supposed to get an IP from a DHCP server. If you do not specify a docker network, they will start in bridge mode. You should be able to access them with the host IP (which is usually the desired behaviour for most users - one host, one IP, multiple services) First thing first: are you starting the container from the command line, docker compose, or Portainer (or equivalent)? Can you post your starting method and configuration? Does the container start, and does it expose the correct port (run docker ps to confirm) Can you access the UI at :8080?

Making a container get an IP from a DHCP server is not straight forward. It is possible however to define a fixed IP for your container (I'd need to make some test though, as I am not familiar with it).

Cheers Antoine

Forensics-Ninja commented 1 year ago

Thanks! I tired it using the host ip and that works I was just being an idiot!!Sent from my vacuum cleanerOn 20 Mar 2023, at 19:12, abesnier @.***> wrote: Hi. By default, containers are not supposed to get an IP from a DHCP server. If you do not specify a docker network, they will start in bridge mode. You should be able to access them with the host IP (which is usually the desired behaviour for most users - one host, one IP, multiple services) First thing first: are you starting the container from the command line, docker compose, or Portainer (or equivalent)? Can you post your starting method and configuration? Does the container start, and does it expose the correct port (run docker ps to confirm) Can you access the UI at :8080? Making a container get an IP from a DHCP server is not straight forward. It is possible however to define a fixed IP for your container (I'd need to make some test though, as I am not familiar with it). Cheers Antoine

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

abesnier commented 1 year ago

Pffew!! I am relieved, I feared I would have to dig deep into docker networking (of which I know next to nothing!), just to help you in a weird use case!

Glad that it works, closing the issue.

Cheers Antoine