I have some few containers Docker and i would like to allow the remote access just for few external IP Address.
docker run -d -p 8080:8080 --restart=unless-stopped --name Jira cptactionhank/atlassian-jira-software
With this command, i will start Jira and everyone who know my external IP address can reach this service. So i would like to open just for some external IPs like 220.127.116.11 and 18.104.22.168 (examples).
I was looking more about and it’s possible to use a comand like:
docker run -d -p 127.0.0.1:3306:3306 --restart=unless-stopped --name MySQL mysql
In this way i can limit the port 3306 (mysql) just on localhost. But if i would like set an access limit for some external IPs?