添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
八块腹肌的小刀  ·  Docker:Spring ...·  1 周前    · 
细心的泡面  ·  Hashicorp Vault : “ ...·  1 周前    · 
发财的太阳  ·  GitHub - ...·  1 周前    · 
勤奋的鸭蛋  ·  RUN Instruction Using ...·  6 天前    · 
小眼睛的火车  ·  How to run Docker ...·  5 小时前    · 
任性的高山  ·  Search - WAN-IFRA·  7 月前    · 
飞奔的丝瓜  ·  Hudson Valley ...·  10 月前    · 

hi, I’m trying to run home assistant in a docker container on centos7 on a raspberrypi 3b+

Commad:
docker volume create homeassistant_data

docker run -d --restart=unless-stopped --name homeassistant --net=host -p 8123:8123 --privileged -v homeassistant_data:/config -e TZ=Europe/Rome ghcr.io/home-assistant/home-assistant:stable

Error:
/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:290: starting container process caused "process_linux.go:340: running prestart hook 1 caused "error running hook: exit status 1, stdout: , stderr: “”.

I run Home Assistant in a Docker container, but I’ve never seen that error. My setup is a little different. I’m using Raspberry Pi OS (Debian) and Docker Compose. The docker-compose.yml looks like this:

services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/raspberrypi4-homeassistant:stable"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /opt/docker/homeassistant:/config
    restart: unless-stopped
    network_mode: host

I’m using a bind mount rather than a volume, but otherwise not much difference. I’m not using ‘privileged’ however.

If you’re interested, I have a tutorial on how to get Docker, Home Assistant, and a bunch of other apps going on Raspberry Pi.

CloudPi