Installing Docker Compose on OpenWrt Router (NanoPi R5C)

NO.1
Docker Compose

Recommended version of OpenWrt comes with Docker by default

Docker version is 24.0.7

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

Click on System – Terminal

Enter your username and password

Command line to check Docker version

docker --version

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

Installing Docker Compose requires a terminal

Reference Article

OpenWrt Router (NanoPi For NAS All In One R4S): Setting up SSH and Docker Compose

NO.2
Installing Docker Compose

Open the download address

https://github.com/docker/compose/releases

Right-click to copy the link for the corresponding architecture, the latest version is v2.24.4 (this article is for aarch64)

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

Try to download

curl -SL https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-linux-aarch64 -o /bin/docker-compose

Download failed

curl: (6) Could not resolve host: objects.githubusercontent.com

No solution available, online tips suggest modifying the kernel, excluding pihole, specifying host

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

Download the docker-compose file on your computer, then start http-server with node

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

Then change the resource address to the local address

curl -SL http://192.168.31.145:8080/docker-compose-linux-aarch64 -o /bin/docker-compose

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

Grant file permissions

sudo chmod 777 /bin/docker-compose

Check docker-compose version

docker-compose --version

The version is v2.24.5, installation of docker-compose successful

Installing Docker Compose on OpenWrt Router (NanoPi R5C)

NO.3
Tips

The installation process for Docker Compose under ARM64 architecture is basically the same

Except for the different bin directories for Ubuntu Server and OpenWrt

Each time on R4S, R2S, R5C, different hardware and different firmware at different times will encounter strange problems, this machine records the current latest version and operation

R5C Collection

《OpenWrt Router NanoPi NAS R5C》

The R5C OpenWrt series, apart from different firmware, from the second article expanding the Docker partition, the content of the series articles is also applicable to R2S, R4S, R5S, R6S series. If not used, it can also be used for reference

END.

Send keywords to the official accountJoin Group, to join the discussion group

If you think this article is good, feel free tolike and collect, see you next time.

Recommended Reading

《OpenWrt Router (NanoPi R5C): OpenWrt System Selection and Installation》

《OpenWrt Router (NanoPi R5C): Expanding Docker Partition》

☕ Friends, if you’re seeing this, are you sure you don’t want to follow along? 👇

Leave a Comment