AllInfo
Main: Info Blog Temp Mail


wrk 2024-09-08 09-32-32

Installing Docker on Alpine Linux


Update the repository database: First, ensure that your package repository is up to date. You can do this by running:
bash
apk update

Add the community repository: Docker is available in the community repository. If it's not already enabled, you need to uncomment the community repository in the /etc/apk/repositories file. Open the file with a text editor and ensure the line for the community repository is active:
text
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community

Install Docker and Docker Compose: Run the following command to install Docker and Docker Compose:
bash
apk add docker docker-compose

Start Docker on system boot: To ensure that Docker starts automatically when your system boots, run:
bash
rc-update add docker boot

Start the Docker service: You can start the Docker service immediately by executing:
bash
service docker start

Verify Docker is running: Check the status of the Docker service to ensure it is running:
bash
service docker status

3.139.72.254 / 2024-10-22_23-28-35 UTC.