{"article":{"id":25411696788507,"url":"https://altalabs.zendesk.com/api/v2/help_center/en-us/articles/25411696788507.json","html_url":"https://help.alta.inc/hc/en-us/articles/25411696788507-Setting-Up-Alta-Control-With-Docker","author_id":24480535824923,"comments_disabled":false,"draft":false,"promoted":false,"position":0,"vote_sum":-3,"vote_count":5,"upvote_count":1,"downvote_count":4,"section_id":25413674603675,"created_at":"2024-05-03T14:46:13Z","updated_at":"2026-11-13T16:49:36Z","name":"Setting Up Alta Control With Docker","title":"Setting Up Alta Control With Docker","source_locale":"en-us","locale":"en-us","outdated":false,"outdated_locales":[],"edited_at":"2026-11-13T16:49:36Z","user_segment_id":null,"user_segment_ids":[],"permission_group_id":29376191924507,"content_tag_ids":["01JCPAGH6VDXBD3N1MSXD96TM3","01JCPAGKS8EWJ2DD90E5GD3NVQ","01JCPAGQ2225YB0WCXVW8HWGKT","01JCPAGV1MQJV43QD4G8V1GFAE","01JCPAH3QJWQ537Y08FTAHN2CT"],"label_names":[],"body":"<p><iframe src=\"//www.youtube-nocookie.com/embed/UfgNA3RDKLo\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"\"></iframe></p><h2 id=\"h_01J88476M0XZN0NYT2D0N7FGEJ\">Minimum Firmware</h2><h3 id=\"h_01J8848NNH2TAP2X8RBVS3NSFN\">AP6 and AP6-Pro</h3><ul><li data-list-item-id=\"ec8a4ec68b377c845b51abf58cdb3befc\">\n<strong>2.0g</strong> or newer</li></ul><h3 id=\"h_01J8849WNH8XPG59PTDDAFDQWR\">Switches</h3><ul><li data-list-item-id=\"e5d9fe476c28b7708eb244ab9113abb5d\">\n<strong>2.1c</strong> or newer</li></ul><p>If you would like to update them without requiring setup into <a href=\"https://manage.alta.inc\">manage.alta.inc</a>,<br>simply hold down the reset button for five seconds while powering on the<br>device, then release, and wait 1 minute for APs, and 3 minutes for switches.</p><p>Ensure that the device has an ethernet connection with Internet access prior to<br>this.</p><p>Keep in mind that there are many variations of how an LXD/Docker image and<br>network can be deployed, and that these instructions will not cover all use<br>cases.</p><h2 id=\"h_01J884S8RRVEW86812JVCSFTHM\">Supported Architectures</h2><ul>\n<li data-list-item-id=\"e6df98abf66c5360ec7ff5b977db3e409\"><span style=\"font-size: 15px;\">amd64 (i.e. x86)</span></li>\n<li data-list-item-id=\"e94989c8ec32cd9b963d3899a118dc4bc\"><span style=\"font-size: 15px;\">arm64</span></li>\n</ul><p>Replace <strong>amd64</strong> with <strong>arm64</strong> below if you are running the controller on an <strong>arm64</strong> host.</p><h2 id=\"h_01J8846KWCM9RNPVAAEQR6VDQ6\">Minimum System requirements</h2><ul>\n<li data-list-item-id=\"ed90883bcdea2632025196f90fbe00300\">2 GHz processor</li>\n<li data-list-item-id=\"eadbbf39a6c073a7044086b3a15a01f63\">2 GB RAM</li>\n<li data-list-item-id=\"ee460f2120b2b1c76cc1dc3840d0b7a9c\">8 GB storage</li>\n</ul><h2 id=\"h_01KP3NBEVB87ZXZ32VRE70ZA25\">Get a Free License</h2><p>If you don’t already have a license, you can get one for free at: <a href=\"https://manage.alta.inc/control\" data-start=\"68\" data-end=\"99\" data-is-last-node=\"\" target=\"_new\" rel=\"noopener\">https://manage.alta.inc/control</a></p><h2 id=\"h_01K050GPEVXW6KRX3EEE12BC4T\">Running the Container</h2><p>1. Pull the image from <a href=\"https://hub.docker.com/r/altalabs/control\">Dockerhub</a></p><pre>docker pull altalabs/control:1.2h-amd64</pre><p>2. Set up <strong>macvlan</strong> in order for the controller to set devices on the LAN<br><span style=\"color: #CC0000;\"><span class=\"wysiwyg-underline\">(substitute with your own </span><strong><span class=\"wysiwyg-underline\">subnet</span></strong><span class=\"wysiwyg-underline\">, </span><strong><span class=\"wysiwyg-underline\">desired controller IP</span></strong><span class=\"wysiwyg-underline\">, </span><strong><span class=\"wysiwyg-underline\">gateway</span></strong><span class=\"wysiwyg-underline\">, and </span><strong><span class=\"wysiwyg-underline\">parent interface</span></strong><span class=\"wysiwyg-underline\">)</span></span>:</p><pre>docker network create -d macvlan \\<br>--subnet=192.168.0.0/24 \\<br>--ip-range=192.168.0.10/32 \\<br>--gateway=192.168.0.1 \\<br>-o parent=eth0 control_net</pre><p>3. Create a persistent Docker volume:</p><pre dir=\"ltr\"><code class=\"language-auto\">docker volume create alta-control-data</code></pre><p>4. Start the container:</p><pre dir=\"ltr\"><code class=\"language-auto\">docker run -it --security-opt seccomp=unconfined \\\n    --cgroupns host \\\n    --add-host local.manage.alta.inc:0.0.0.255 \\\n    --net=control_net \\\n    --restart=unless-stopped \\\n    -v /sys/fs/cgroup/access.scope:/sys/fs/cgroup:rw \\\n    --mount type=volume,source=alta-control-data,target=/data \\\n    --tmpfs /run \\\n    --tmpfs /run/lock \\\n    --name control \\\n    altalabs/control:1.2h-amd64</code></pre><p>5. Detach from the container (<strong>CTRL-P</strong>, <strong>CTRL-Q</strong>), then start a shell in the container:</p><pre>docker exec control ip addr show # to get the IP address</pre><p>6. Go to the IP address of the controller, there you will be prompted for a Product Activation Code.</p><p>If this is running on a virtualized host, such as on an EC2 instance, you can replace <span style=\"color: #C72809;\">--net=control_net</span> with <span style=\"color: #C72809;\">--network bridge -p 443:443/tcp</span></p><p>7. To obtain a free Product Activation Code please visit this <a href=\"https://manage.alta.inc/control\">link</a>.</p><p>8. Once you obtained a code and applied it, you will receive a link in your email that redirects you to the new dynamic DNS URL.</p><p>9. Once you see the login screen on your new controller, create an account,<br>validate it, and then use the controller as normal.</p><p><span class=\"wysiwyg-font-size-large\" style=\"color: #FF6666;\">NOTE</span>: You <strong>must</strong> create a new account, as this instance is in no way connected to any other instance of the Control software. This means any existing cloud-based account is also not synchronized on your new Control container.</p><h2 id=\"h_01JZTCHWGF6CTMD01HYJF725NX\">Compose</h2><pre class=\"language-auto\">services:\n  control:\n    image: altalabs/control:1.2h-amd64\n    container_name: control-macvlan\n    networks:\n      control_macvlan:\n        # Customize for your network\n        ipv4_address: 192.0.2.10\n    tmpfs:\n      - /run\n      - /run/lock\n    volumes:\n      - /sys/fs/cgroup/access.scope:/sys/fs/cgroup:rw<br>      - alta-control-data:/data\n    extra_hosts:\n      - local.manage.alta.inc:0.0.0.255\n    cgroup: host\n    security_opt:\n      - seccomp=unconfined\n    tty: true\n    stdin_open: true\n    restart: unless-stopped\nvolumes:<br>  alta-control-data:<br><br>networks:<br>  control_macvlan:<br>    name: control_macvlan<br>    driver: macvlan<br>    ipam:<br>      driver: default<br>      config:<br>        - subnet: 192.0.2.0/24<br>          gateway: 192.0.2.1</pre><h2 id=\"h_01J884J3JNS0Y3Y4NYPMYBN320\">Notes</h2><p>If you don’t bridge/macvlan the container to your LAN, it will not<br>automatically detect and set up APs. You will need to go to the web server of<br>the unconfigured AP, and set the URL to match your controller’s hostname,<br>including <strong>https://</strong>.</p><p>If you’d like to import the image into Hyper-V, ESXI, or any other<br>virtualization host, the raw root filesystems can also be found at:</p><ul>\n<li data-list-item-id=\"e671ca3e45182ff33595447007ec8b05c\"><a href=\"https://dl.alta.inc/dev/control-amd64-1.2h.tar.gz\" target=\"_blank\" rel=\"noopener noreferrer\">https://dl.alta.inc/dev/control-amd64-1.2h.tar.gz</a></li>\n<li data-list-item-id=\"eca7ec0abca34df706c30ab5d79852443\"><a style=\"background-color: #ffffff;\" href=\"https://dl.alta.inc/dev/control-arm64-1.2h.tar.gz\" target=\"_blank\" rel=\"noopener noreferrer\">https://dl.alta.inc/dev/control-arm64-1.2h.tar.gz</a></li>\n</ul><h2 id=\"h_01J884NPN5WPNDPXKAK6DY9H8E\">Known issues</h2><p data-pm-slice=\"1 1 []\">With persistent storage mounted at <code dir=\"ltr\">/data</code>, controller data survives container deletion and replacement. Reattach the same volume when recreating or upgrading the container. Only one controller container may use a volume at a time. Deleting the volume deletes its data; continue taking controller backups. Without this mount, data remains inside the container.</p><h2 id=\"h_01M5JGGB4PQ6VV90DH4R4VEP6D\">Migrating an Existing Installation to Persistent Storage</h2><p>If you have an existing Alta Control Docker installation without persistent storage, follow these steps to preserve your controller configuration and device management data.</p><ol>\n<li data-list-item-id=\"e10199165454696bb36e75c994ec7d22a\">\n<strong>Back up the controller.</strong> Log in to the existing controller and download a controller backup before removing the container.</li>\n<li data-list-item-id=\"e194bed8c8ef3cff92e49bb0716f6299a\">\n<strong>Stop the existing container.</strong> Stop the old controller container, but keep it available until the migration is verified.</li>\n<li data-list-item-id=\"ef4a2506cf0351a542b8d3173c71d5e2f\">\n<p><strong>Create a persistent volume.</strong> Create a new, empty Docker volume:</p>\n<pre class=\"language-auto\">docker volume create alta-control-data</pre>\n</li>\n<li data-list-item-id=\"ef5fd645e8e256c06d3753ddf64680940\">\n<strong>Create the new container.</strong> Use the updated <code>1.2h</code> image and mount the new volume at <code>/data</code>, following the instructions in <a href=\"https://chatgpt.com/c/6ada303f-bb14-83ee-9a5e-b88f43f25787#running-the-container\">Running the Container</a>.</li>\n<li data-list-item-id=\"e728411ea42b7fca60d3bf54eacdce643\">\n<strong>Complete the initial setup.</strong> Access the new controller and complete its initial setup.</li>\n<li data-list-item-id=\"e3fbcc1e864bffe4934ba1b81571d05ba\">\n<strong>Restore the backup.</strong> Restore the backup downloaded from the original controller.</li>\n<li data-list-item-id=\"e5eccfb18c627567720184ce9ecbcb3bf\">\n<strong>Verify the migration.</strong> Confirm that the controller configuration and managed devices are restored and operating as expected before removing the old container.</li>\n</ol><p><strong>Important:</strong> Attaching an empty volume does not automatically migrate data from an older container. Keep the old container until the restored controller has been verified. Continue taking regular controller backups after migration.</p><h2 id=\"h_01J884Q7DM17F9JVV3J81JNDRH\">Common Issues</h2><p>If you get an error like:</p><pre>Docker: Error response from daemon: error while creating mount source path<br>‘/sys/fs/cgroup/access.scope’...</pre><p>Your kernel or distribution may be older, and may not have <strong>cgroupsv2</strong> enabled.<br>To enable it, add this to your kernel command line:</p><pre>systemd.unified_cgroup_hierarchy=1</pre>"}}