google-chrome --headless --disable-gpu --dump-dom https://google.com
This command working for google.com from docker selenium container , but not working for specific public websites. It`s possible to send CURL from the same container , but chrome request is not working
I want to get result after send request from container with google-chrome --headless --disable-gpu --dump-dom https://google.com command , it`s working for google.com but not working on other some public websites
Related
I already deployed Huginn on my linux server with Docker.
Huginn on Github: link
But when I ran docker run -it -p 3000:3000 huginn/huginn, and I wanted to connect Huginn login page with Http://myserverIP:3000 on my browser, it doesn't respond.
Browser response
How could I fix this problem? Or did I miss any details?
I'm starting to learn Docker.
For practice, I have set up an Nginx container on Ubuntu Server (separate PC).
Used this command docker run -it -d -p 8080:80 nginx
Then I did curl on it's home network IP (192.168.1.38:8080) and it worked fine. Showed Nginx starter page.
But then I tried to see that starter page on Windows, and curl 192.168.1.38:8080 didn't work there. It didn't open in the browser either. Gave ERR_CONNECTION_TIMED_OUT error.
I have tried to do it the other way around:
Set up the same Nginx container on a Windows machine and tried to curl it's IP:8080 from Ubuntu Server machine and it worked.
So seems like Windows lets access its IP:8080 from other devices, and Ubuntu doesn't.
sudo ufw allow 8080/tcp on your Ubuntu Server should fix this issue.
How to Connect to Host service on windows from within a Docker Container on Docker Desktop WINDOWS?
The service is running locally on localhost:9092
I tried using host.docker.internal but doesn't seems to work.
I tried this example from Docker-desktop document
https://docs.docker.com/desktop/windows/networking/#per-container-ip-addressing-is-not-possible
Run the following command to start a simple HTTP server on port 8000.
python -m http.server 8000
If you have installed Python 2.x, run python -m SimpleHTTPServer 8000.
Now, run a container, install curl, and try to connect to the host using the following commands:
docker run --rm -it alpine sh
apk add curl
curl http://host.docker.internal:8000
exit
The above doesn't seem to work on windows.
You should not start the service binded to localhost (127.0.0.1). Start the service binded to the IP of docker for desktop (192.168.x.x usually). Otherwise, start the service attached to all interfaces using 0.0.0.0, this could be insecure though.
I have recently installed docker toolbox for windows 10 home. I downloaded the jboss/wildfly image from the docker hub. I tried to create the container with the following command.:
docker run -p 8080:8080 -p 9990:9990 -it jboss/wildfly /opt/jboss/wildfly/bin/standalone.sh -bmanagement 0.0.0.0. The server appears to be up and running. I got the IP address for my host using docker-machine ls which gave me an IP address of 192.168.99.100. When I type the following into my MS Edge browser http:\\192.168.99.100:8080\ instead of getting the wildfly welcome page I get “Cannot Reach This Page” error (HTTP 404?). I have tried this with the Tomcat server and have the same problem. Thanks.
Looking at the build file on the docker registry, I would try http://127.0.0.1:9990 or http://192.168.99.100:9990
Ref: https://hub.docker.com/r/jboss/wildfly
I want to run a Google Earth Engine Datalab on a server and access it from another PC on LAN. Server's OS is Windows Server 2012. So, following https://developers.google.com/earth-engine/python_install-datalab-local, I did:
Install Docker Toolbox
Define a Local Workspace
Create the container, but changing: -p "127.0.0.1:8081:8080" for -p "8081:8080". This is the full command:
docker run -it -p "8081:8080" -v "$WORKSPACE:/content" -e "PROJECT_ID=$GCP_PROJECT_ID" $CONTAINER_IMAGE_NAME (see the link
It works, and I can access it through 192.168.99.100:8081. But that only works for localhost, so I followed this answer https://stackoverflow.com/a/36458215/2791453, did all steps, and now I open a browser on the server, and access the Datalab through 196.168.0.55:8081 (that's the server LAN address), but I cannot access it from another computer connected to LAN.
it seems like firewall issue.
you can test networking is working OK from other host with ping
ping 196.168.0.55
if it is OK you can test if the port is open with netcat
nc -z 196.168.0.55 8081 -v
if it says open port it means there will be issue inside docker container, if it timeout or other error it will be firewall related