Protecting your Alpine Docker images is always a good practice, especially the vulnerable services. Today, I will install UFW on Alpine Linux.
Prerequisites
- Alpine Linux
- sudo privileges
Install UFW on Alpine Linux
Step 1. Make sure the system is up-to-date.
sudo apk update
Step 2. Install UFW.
sudo apk add ufw
Step 3. Verify installation.
ufw --version
Output:
ufw 0.36.1
Copyright 2008-2018 Canonical Ltd.
Step 4. List UFW rules.
ufw status
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.