Alpine Linux 3.22
Alpine Linux 3.22 is a minimalist Linux distribution built with a focus on security, simplicity, and resource efficiency. By using musl libc and BusyBox, Alpine provides a compact and high-performance environment, perfectly suited for containers, virtual machines, and embedded systems.
The Alpine 3.22 image in Yandex Cloud includes:
- Pre-installed cloud-init for automatic configuration at startup
- Configured SSH server with secure default settings
- Optimized configuration for cloud environment
- Minimal package set for quick startup and low resource consumption
Technical specifications:
- Kernel: Linux
- Package manager: apk
- Disk size: 20 GB
- Disk type: network-ssd
- Configured time synchronization via chrony
Alpine Linux is ideal for:
- Running Docker containers
- Creating lightweight microservices
- Developing and testing applications
- Using as a base image for specialized solutions
- In the Marketplace, find the
Alpine Linux 3.22product and click Install; - In the Virtual Machine Configuration section:
- Choose an appropriate CPU and memory configuration (minimum 2 vCPU and 1 GB RAM recommended);
- Adjust the disk size if needed (default is 20 GB);
- In the Network section:
- Select a subnet with configured Internet access;
- Create a security group with allowed port
22for SSH access;
- In the Access section:
- Specify a username (default is
alpine); - Add an SSH key for accessing the virtual machine;
- Specify a username (default is
- Click Create VM;
- After the virtual machine is created, connect to it via SSH:
ssh alpine@<VM-IP-address> - Update the system after first boot:
sudo apk update && sudo apk upgrade
Running Microservices
Alpine Linux is perfect for running microservices due to its lightweight nature and minimal resource consumption.
User: I need to run several Node.js microservices with minimal resource overhead.
Solution: Use Alpine Linux 3.22 as the base image for your containers.
User: How do I install Node.js on Alpine?
Solution: Simply run `apk add nodejs npm` after launching the virtual machine.
Creating a Secure Web Server
Alpine Linux provides a solid foundation for creating secure web servers with a minimal attack surface.
User: I need to set up a secure web server for hosting a static website.
Solution: Launch Alpine Linux 3.22 and install nginx using `apk add nginx`.
User: How do I set up SSL for the site?
Solution: Install certbot with `apk add certbot` and configure automatic certificate acquisition from Let's Encrypt.
Development and Testing
Alpine Linux provides a lightweight environment for developing and testing applications.
User: I need an environment for testing Python applications before deployment.
Solution: Use Alpine Linux 3.22 and install Python with `apk add python3 py3-pip`.
User: How do I create an isolated environment for testing?
Solution: Install virtualenv with `apk add py3-virtualenv` and create an isolated environment.
Yandex Cloud technical support is available 24/7 to respond to requests. The types of requests available and their response time depend on your pricing plan. You can activate paid support in the management console. Learn more about requesting technical support.
Yandex Cloud does not provide technical support for this product. If you have any issues, please refer to the developer’s information resources.