Comments (5)
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.
@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.
Hi @Yamakasi what's your full docker run command or docker-compose file?
from ufw-docker-automated.
@shinebayar-g Here you go:
docker run -d -p 9999:80 -l UFW_MANAGED=TRUE --name whoami -t jwilder/whoami
from ufw-docker-automated.
Glad it worked.
from ufw-docker-automated.
Related Issues (20)
- Avoid duplicate rules HOT 10
- persistent storage HOT 1
- Potential race condition on host startup HOT 1
- Does not run on a Raspberry Pi @ Debian HOT 3
- Docker swarm mode support HOT 2
- UFW init error bad argument filter HOT 1
- When container has multiple networks, it only creates one network rules HOT 5
- ERROR: 'route delete NUM' unsupported. Use 'delete NUM' instead. HOT 8
- support Debian 11 / Ubuntu 22 HOT 1
- automated rules removed and not properly added back on docker service restart HOT 10
- Ubuntu 22.04 with crowdsec firewall bouncer does not add any docker rules. HOT 12
- docker-compose.yml for mempool HOT 1
- UFW Rule for network interface name
- Segmentation fault
- Systemd ufw-docker-automated.service exit 0 HOT 2
- Can this automate ufw limits?
- Publish a new release with latest changes
- Couldn't detect the container IP address. HOT 3
- Double rules in ufw after server restart
- Problems accessing port
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ufw-docker-automated.