|

How to install MikroTik with license 6 on a virtual server using docker

In previous videos on the YouTube channel, we discussed how to install MikroTik CHR on a Hetzner virtual server. As you know, the version in question had a limited license and we needed to purchase a license to remove the restrictions.
In this article, we will teach you how to install MikroTik with the highest license level (6) using docker on the Ubuntu Linux operating system, which you can also watch on YouTube.
First of all, we need a virtual server. I recommend the Hetzner Germany site because of its reasonable price and good ping time. Fortunately, the service is active for Iranian users, but you need authentication to use it, which you can activate your account with a passport. The noteworthy point is that you will receive 20 euros by using the registration and authentication link on the site!
When creating a cloud virtual server, select the Ubuntu or Debian Linux operating system, and the login information will be sent to your email address. Connect to the server using PuTTY and SSH protocol and change the password to be ready to install docker.
Docker is an open source tool for building applications using Containers. We use this tool to run the cracked MikroTik RouterOS with license 6.
Two versions of MikroTik are ready for installation, choose according to your needs:

Docker image Mikrotik 7.7 (L6)
The first image has RouterOS version 7.7, which can be installed and run with minimal hardware resources (512MB RAM).

Docker-image-MikroTik-6.45.9-L6.7z
The second image has RouterOS 6.45.9, with the CPU set to maximum and the RAM set to 4GB. After installation, you can update to the latest version (currently 7.7).
To run the second image, we need a virtual server with more than 4GB of RAM.

Update Linux repository:

sudo apt-get update;

Install Docker:

sudo curl -sS https://get.docker.com/ | sh sudo systemctl start docker sudo systemctl enable docker

Check Docker status:

sudo systemctl status docker

Download MikroTik image on server (run one of these codes according to your need)
Docker image Mikrotik 7.7 (L6)

wget https://mirnode.com/dl/Docker-image-Mikrotik-7.7-L6.7z

Docker-image-MikroTik-6.45.9-L6.7z Server with more than 4GB RAM

wget https://mirnode.com/dl/Docker-image-MikroTik-6.45.9-L6.7z

I am using the second image in this tutorial.
After downloading the file, you need to unzip it using the 7z command:

sudo apt-get install p7zip-full 7z e Docker-image-MikroTik-6.45.9-L6.7z

Loading the image into the Docker container (for version 6.45.9):

docker load --input mikrotik_new_livekadeh_com

If you are using the first image (version 7.7), use the following command to load the image:

docker load --input mikrotik7.7_docker_livekadeh.com

Viewing the name of the loaded image: (We need the output of this command in the next step)

docker images

Executing the image using Docker:

docker run --cap-add=NET_ADMIN --device=/dev/net/tun -d --name mikrotik -p 8291:8291 -ti mikrotik_new2

The final step and connecting to the Console:

docker attach mikrotik

If an error occurs, first stop and restart the container and perform the previous step.

docker stop mikrotik
docker start mikrotik

Enter the required Mikrotik username and password as follows
In version 7.7:

username: admin
password: admin


In version 6.45.9, leave the admin username and password blank.

    Similar Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *