sdr-enthusiasts / docker-readsb-protobuf

Multi-architecture readsb-protobuf container with support for RTLSDR, bladeRF and plutoSDR (x86_64, arm32v7, arm64v8)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

readsb error on docker-compose up -d

puh2oskier opened this issue · comments

I've never used docker and I'm just getting into ads-b. I have been following the guide from https://mikenye.gitbook.io/ads-b/foundations/deploy-readsb-container and I've run into this problem when attempting docker-compose up -d which I have included below. Because of the readsb error it won't create the adsbx container. I also included the docker-compose.yml file text below that. Any help with what I may have going wrong would be appreciated.
Thanks

pi@raspberrypi:/opt/adsb $ docker-compose up -d
dump978 is up-to-date
Creating readsb ... error

ERROR: for readsb Cannot create container for service readsb: Conflict. The container name "/readsb" is already in use by container "619a3a5d97055f7cedd0a7a14cdec9328dd6043ce1897ae5f10e80af377faa78". You have to remove (or rename) that container to be able to reuse that name.

ERROR: for readsb Cannot create container for service readsb: Conflict. The container name "/readsb" is already in use by container "619a3a5d97055f7cedd0a7a14cdec9328dd6043ce1897ae5f10e80af377faa78". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.

docker-compose.yml

version: '3.8'

volumes:
readsbpb_rrd:
readsbpb_autogain:

services:
readsb:
image: mikenye/readsb-protobuf:latest
tty: true
container_name: readsb
hostname: readsb
restart: always
devices:
- /dev/bus/usb
ports:
- 8080:8080
environment:
- TZ=${FEEDER_TZ}
- READSB_DEVICE_TYPE=rtlsdr
- READSB_RTLSDR_DEVICE=1090
- READSB_GAIN=autogain
- READSB_LAT=${FEEDER_LAT}
- READSB_LON=${FEEDER_LONG}
- READSB_RX_LOCATION_ACCURACY=2
- READSB_STATS_RANGE=true
- READSB_NET_ENABLE=true
- READSB_NET_CONNECTOR=dump978,37981,raw_in
volumes:
- readsbpb_rrd:/run/collectd
- readsbpb_autogain:/run/autogain
tmpfs:
- /run/readsb
- /var/log
dump978:
image: mikenye/dump978:latest
tty: true
container_name: dump978
restart: always
devices:
- /dev/bus/usb
environment:
- TZ=${FEEDER_TZ}
- DUMP978_RTLSDR_DEVICE=978
tmpfs:
- /run/readsb
adsbx:
image: mikenye/adsbexchange:latest
tty: true
container_name: adsbx
restart: always
depends_on:
- readsb
environment:
- BEASTHOST=readsb
- LAT=${FEEDER_LAT}
- LONG=${FEEDER_LONG}
- ALT=${FEEDER_ALT_M}m
- SITENAME=${ADSBX_SITENAME}
- UUID=${ADSBX_UUID}
- TZ=${FEEDER_TZ}
tmpfs:
- /run:exec,size=64M,uid=1000,gid=1000
- /var/log

just rewrote the program and worked fine.