8,367
edits
Changes
→The Method Of Installing The Docker
== The Method Of Installing The Docker ==
Orange Pi's Linux image has been pre-installed with Docker, but the Docker service has not been opened by default. Use E'''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 activated at the next start of the system.
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''enable_docker.sh'''
|}
You can use the following command to test the docker,If you can run '''hello-world''' to indicate that docker can be used normally.。
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''docker run hello-world'''
Status: Downloaded newer image for hello-world:latest
'''<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 it prompts '''permission denied''', please add the current user to the docker user group, so that the docker command can be run 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 of the system and log in again to take effect, and restarting the system is also OK.'''</big>|}
<span id="how-to-install-home-assistant"></span>
== How to install Home Assistant ==