Changes

Jump to: navigation, search

Orange Pi Zero 2W

316 bytes added, 14:34, 26 September 2023
How to install Docker
The Linux image provided by Orange Pi has Docker pre-installed, but the Docker service is not turned on by default. Use the '''enable_docker.sh''' script to enable the docker service, and then you can start using the docker command, and the docker service will be automatically started the next time you start the system.
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''enable_docker.sh'''
|}
You can use the following command to test docker. If '''hello-world''' can be run, docker can be used normally.
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''docker run hello-world'''
Status: Downloaded newer image for hello-world:latest
'''Hello from Docker!'''
'''<span style="color:#FF0000">Hello from Docker!</span>''' '''<span style="color:#FF0000">This message shows that your installation appears to be working correctly.</span>'''
'''.….'''
|}
When using the docker command, if you are prompted for '''permission denied''', please add the current user to the docker user group so that you can run the docker command without sudo.
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''sudo usermod -aG docker $USER'''
|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note: You need to log out and log in again to the system to take effect. You can also restart the system.'''</big>|}
<span id="how-to-install-home-assistant"></span>
 
== How to install Home Assistant ==

Navigation menu