Bruno Di Benedetto Posted September 16, 2020 Share Posted September 16, 2020 I cannot access via the docker container ip, even doing the port forwarding on the instructions thanks Link to comment Share on other sites More sharing options...
0 Burak Posted September 16, 2020 Share Posted September 16, 2020 Did you check the service status in container? Is it running? Which URL do you use to access the AMS in container? Link to comment Share on other sites More sharing options...
0 Bruno Di Benedetto Posted September 16, 2020 Author Share Posted September 16, 2020 `service --status-all | grep antmediaservice` gives me [ ? ] antmedia [ ? ] hwclock.sh [?] meeans undefined status I think anyway I get my `The Ant Media Service has started.` log already tryied restarting it using 127.0.0.1 (responding to ping from host ) ports 80 , 8050 tryed serveral ports also did sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5080 sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 5443 like in https://github.com/ant-media/Ant-Media-Server/wiki/Getting-Started thanks for taking a look Link to comment Share on other sites More sharing options...
0 Burak Posted September 17, 2020 Share Posted September 17, 2020 You docker container IP may be 172.17.0.2 Did you try to access it with this IP. You can find your container IP with docker inspect command. Please send its output. Please try to connect it as http://CONTAINER_IP:5080 Link to comment Share on other sites More sharing options...
0 Bruno Di Benedetto Posted September 17, 2020 Author Share Posted September 17, 2020 Thanks Burak. I've tryied this other ip with no luck docker inspect antmediaserver [ { "Id": "sha256:ac5f78113afe2a7e60927ab901a2ced422cceeb9591386607820359848c0679e", "RepoTags": [ "antmediaserver:latest", "proj:AntMediaServer" ], "RepoDigests": [], "Parent": "sha256:bbf4d85de63cdb867e7dc719c725d7693d0e041940c79548342f60dcf0625e90", "Comment": "", "Created": "2020-09-14T20:36:47.520978555Z", "Container": "fbbfccc7cafe3f3b115fc6533cf023ea89d7515ed9c8ab1f036362901a91e587", "ContainerConfig": { "Hostname": "docker-desktop", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": [ "/bin/sh", "-c", "#(nop) ", "ENTRYPOINT [\"/bin/sh\" \"-c\" \"service antmedia start && /bin/bash\"]" ], "Image": "sha256:bbf4d85de63cdb867e7dc719c725d7693d0e041940c79548342f60dcf0625e90", "Volumes": null, "WorkingDir": "", "Entrypoint": [ "/bin/sh", "-c", "service antmedia start && /bin/bash" ], "OnBuild": null, "Labels": {} }, "DockerVersion": "19.03.12", "Author": "", "Config": { "Hostname": "", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": null, "Image": "sha256:bbf4d85de63cdb867e7dc719c725d7693d0e041940c79548342f60dcf0625e90", "Volumes": null, "WorkingDir": "", "Entrypoint": [ "/bin/sh", "-c", "service antmedia start && /bin/bash" ], "OnBuild": null, "Labels": null }, "Architecture": "amd64", "Os": "linux", "Size": 1140831327, "VirtualSize": 1140831327, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/8da9fb31e334eba941915435493505a00c74fa2ee1c857aebcf314b1cd5ab0c5/diff:/var/lib/docker/overlay2/7448e930301fd89ec98900cec17fd803e07b5aabb6d36384ce3171335ec5f967/diff:/var/lib/docker/overlay2/972e5ba0d90cbebabbb53fff9734c46371340c07ff76351d7deff6cf56346a1c/diff:/var/lib/docker/overlay2/58096622332c606d17aa05b38a8e7438f9d59246143a96fd88f28ecd59f2ec46/diff:/var/lib/docker/overlay2/56b598bcc76d041fc22b45c45724d1dbe34694454726886e3e11763257f5854e/diff:/var/lib/docker/overlay2/ae205980fb572449c698f8420d706827586c4bfe622f650bcad11951e720e4ce/diff:/var/lib/docker/overlay2/e5a1ead69f41762e9e36435d5230dfe24230171cc51244fa4c68d730f165df93/diff:/var/lib/docker/overlay2/9b0dce089d073a1b9a4d937b64731b87297b6ef7299011e2f555c1e5ae0d785b/diff", "MergedDir": "/var/lib/docker/overlay2/f0d654fe788c628cfac04e73b3dab512f6f5c2462da8c45ff917cbe42a658ddb/merged", "UpperDir": "/var/lib/docker/overlay2/f0d654fe788c628cfac04e73b3dab512f6f5c2462da8c45ff917cbe42a658ddb/diff", "WorkDir": "/var/lib/docker/overlay2/f0d654fe788c628cfac04e73b3dab512f6f5c2462da8c45ff917cbe42a658ddb/work" }, "Name": "overlay2" }, "RootFS": { "Type": "layers", "Layers": [ "sha256:79bde4d54386664324ce9b6179a3265ca96e6c8f05c06ded53856a670874c715", "sha256:2f37d11021878811b25cc6a3c6d48a0eb6f57a0b0d42f954123a18c17e2abf56", "sha256:2ba5b91ca2b0c27b8ca3503b93164e9ec29ef5ae72e5272192839347e9f951dd", "sha256:001e4a80973b4bc154292425871684a0c1fa422c344186516dd6f792606ed9d6", "sha256:5324a4f37c7b1c4f2bfc01f19c0fd72f67d09528aacb78722c7bef4a50a43013", "sha256:cf5c7dec18669700f0122c3b7530f66fd704c6c54be6302f8cbd5ca77e773255", "sha256:82f30491a4cc0cd0d38a2c6c5264644152e6246a42dc822a9238ecef81560299", "sha256:7bd43b9f4bde2dae7e8eee697576e72bdc25b1943755fdd462101703971cab4a", "sha256:d815d754f8c195fc20760d09686d5c1525960927ae18700ec867ce1a2b3df1fb" ] }, "Metadata": { "LastTagTime": "2020-09-16T15:56:24.753514042Z" } } ] Regards Link to comment Share on other sites More sharing options...
0 Burak Posted September 18, 2020 Share Posted September 18, 2020 >From the logs I couldn't be sure if it is running. Please send the logs: Enter container: docker exec -it CONTAINER_NAME /bin/bash Cat the logs: cat /usr/local/antmedia/log/ant-media-sever.log Link to comment Share on other sites More sharing options...
Question
Bruno Di Benedetto
I cannot access via the docker container ip, even doing the port forwarding on the instructions
thanks
Link to comment
Share on other sites
Top Posters For This Question
3
3
Popular Days
Sep 16
3
Sep 17
2
Sep 18
1
Top Posters For This Question
Burak 3 posts
Bruno Di Benedetto 3 posts
Popular Days
Sep 16 2020
3 posts
Sep 17 2020
2 posts
Sep 18 2020
1 post
5 answers to this question
Recommended Posts