Skip to main content

OS with Containers Ready application

You can install an OS with the pre-installed Containers Ready application on a dedicated server.

The Containers Ready application includes:

  • Docker version 28.0.3 — a containerization platform for developing and running applications;
  • plugins for running Docker Compose version 2.33.0;
  • Portainer version 2.27.0 — a graphical interface for monitoring and managing Docker containers, images, and Docker networks.

Before installing an OS with an application, review the software license agreements included in the image.

Install an OS with Containers Ready

For Containers Ready to work, the dedicated server must be accessible from the internet.

To set up Containers Ready and configure Portainer when creating a server, you can specify user data — custom OS configuration parameters.

You can open the Portainer panel by IP address or domain. To open the Portainer panel by domain, specify the domain in user data — after the OS is installed, a Let’s Encrypt® TLS(SSL) certificate will be automatically issued for the domain.

  1. In the control panel, in the top menu, click Products and select Dedicated Servers.

  2. In the Servers section, open the server page → Operating system tab.

  3. Click Reinstall OS.

  4. Optional: for a secure connection to the server via the encrypted SSH protocol, select a previously uploaded and placed SSH key or add a new one. For details, see the Create and upload an SSH key to a dedicated server.

  5. Enter user data. User data allows you to automate server configuration. You can specify user data only for servers without hardware HBA and RAID controllers.

    You can use a script in user data to configure container setups. To open the Portainer panel via a domain, insert the following script into the user data field:

    #cloud-config

    write_files:
    - path: "/opt/containers/docker-compose.yaml"
    permissions: "0644"
    content: |
    version: "3.9"
    services:
    <containers>

    - path: "/opt/containers/.env"
    permissions: "0644"
    content: |
    <environment-variables>

    - path: "/opt/user-values.yaml"
    permissions: "0644"
    content: |
    portainer_use_le: true
    portainer_domain: "<example.com>"
    portainer_le_email: "<root@example.com>"

    Specify:

    • <containers> — Docker Compose file contents for the docker-compose.yaml file. For details, see the docker compose instructions in the Docker documentation;
    • <environment-variables> — environment variables for the .env file. If the file is not needed, delete the code block. For details, see the Use environment variables instructions in the Docker documentation;
    • in the content: code block for the /opt/user-values.yaml file, specify configuration parameters for Portainer;
    • portainer_use_le: true — parameter for automatic issuance of a Let’s Encrypt® TLS(SSL) certificate;
    • <example.com> — domain for accessing Portainer. To open the domain by the public IP address of the server, add an A record in your DNS hosting control panel and specify the public IP address of the server in the record value. The IP address can be copied in the control panel: in the top menu, click ProductsDedicated Servers → server page → Operating system tab → in the IP field, click . If the domain is delegated to Selectel DNS hosting (actual), use the Add a resource record instructions. After the OS is installed, a Let’s Encrypt® TLS(SSL) certificate will be automatically issued for the domain. If there is an error issuing the TLS(SSL) certificate, the Portainer panel will be accessible via the server's IP address;
    • <root@example.com> — email address of the Containers Ready administrator for account creation and receiving Let’s Encrypt® notifications.
    Example script for User data
    #cloud-config

    write_files:
    - path: "/opt/containers/docker-compose.yaml"
    permissions: "0644"
    content: |
    version: "3.9"
    services:
    web:
    container_name: web
    image: "busybox"
    env_file: "/opt/containers/.env"
    db:
    container_name: db
    image: "busybox"
    env_file: "/opt/containers/.env"

    - path: "/opt/containers/.env"
    permissions: "0644"
    content: |
    APP_ENV=production
    LOG_LEVEL=info
    LOG_FORMAT=json
    LOG_OUTPUT=/var/log/app.log

    - path: "/opt/user-values.yaml"
    permissions: "0644"
    content: |
    portainer_use_le: true
    portainer_domain: "example.com"
    portainer_le_email: "root@example.com"
  6. In the Distribution field, select Container Ready.

  7. Optional: partition the disks. You can select the disk where the root partition / will be created and the OS installed. If four or more disks are installed on the server, you can assemble them in pairs into different RAID levels, for example RAID1 and RAID0.

    By default, the optimal RAID level is determined and only disks with partitions and disks in RAID are partitioned. If you leave the default partitioning, the OS will be installed on the first disk, according to the order of disk installation on the server — NVMe → SSD → HDD.

  8. Click Install. The installation may take from 7 to 60 minutes, its duration depends on the server performance and the selected distribution. If more time has passed, create a ticket.

  9. After the OS is installed, a password for connecting to the server will be generated, which is also used for authorization in the Portainer panel. The password can be copied in the control panel: in the top menu, click ProductsDedicated Servers → server page → Operating system tab → in the Password field, click . The password is available for viewing for 24 hours from the start of OS installation or configuration change. If you forgot the server password, you can reset and recover it.

Connect to the Portainer panel

The address for connecting to the Portainer panel depends on whether you specified a domain in user data when installing the OS in step 5.

  1. Open the following page in your browser:

    https://<domain>:9443

    Specify <domain> — the domain name you entered when installing the OS in step 5 in the User data field.

  2. Log in to the panel. Use:

    • username — admin;
    • password — your server password. It can be copied in the control panel: in the top menu, click ProductsDedicated Servers → server page → Operating system tab → in the Password field, click . The password is available for viewing for 24 hours from the start of OS installation or configuration change. If you forgot the server password, you can reset and recover it.