Giter VIP home page Giter VIP logo

Comments (5)

shinebayar-g avatar shinebayar-g commented on August 11, 2024 1

If the image you're running is jwilder/whoami I believe it runs on port 8000, not 80.

docker run -d -p 9999:8000 -l UFW_MANAGED=TRUE --name whoami -t jwilder/whoami

This command works. After this I was able to hit the container.

❯ curl 192.168.50.234:9999
I'm 7f5b5fa3ef36
vagrant@ubuntu18-docker:~$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22                         ALLOW       Anywhere
22 (v6)                    ALLOW       Anywhere (v6)

172.17.0.2 8000/tcp        ALLOW FWD   Anywhere                   # whoami:7f5b5fa3ef363a8dbf7447a089a3eeabd277ace66bf47867843a5cd3d7527326

from ufw-docker-automated.

Yamakasi avatar Yamakasi commented on August 11, 2024 1

@shinebayar-g You are completely right, sorry my mistake and it works well!

I actually ran into this test because I was adding manually rules before for existing containers like SMTP which had the same issue but that seems to be resolved as well.

Thanks for the great module!

from ufw-docker-automated.

shinebayar-g avatar shinebayar-g commented on August 11, 2024

Hi @Yamakasi what's your full docker run command or docker-compose file?

from ufw-docker-automated.

Yamakasi avatar Yamakasi commented on August 11, 2024

@shinebayar-g Here you go:

docker run -d -p 9999:80 -l UFW_MANAGED=TRUE --name whoami -t jwilder/whoami

from ufw-docker-automated.

shinebayar-g avatar shinebayar-g commented on August 11, 2024

Glad it worked.

from ufw-docker-automated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.