change to remove function due to auto_remove is not working

This commit is contained in:
Administrator 2021-10-25 14:53:34 +00:00
parent 94f8728fbd
commit ad0bcc5762

View File

@ -27,7 +27,7 @@ client.connect(mqtt_broker, 1883, 60) # MQTT server address
# -R 187 Inkbird ITH-20R temperature humidity sensor (pool sensor)
docker = docker.from_env()
container = docker.containers.run("rtl_433:inkbird", "-R 42 -R 187 -F json -T 40 -M time:utc:usec", devices={'/dev/bus/usb/001/004:/dev/bus/usb/001/004:rwm'}, auto_remove=True)
container = docker.containers.run("rtl_433:inkbird", "-R 42 -R 187 -F json -T 40 -M time:utc:usec", devices={'/dev/bus/usb/001/004:/dev/bus/usb/001/004:rwm'}, remove=True)
for line in container.split('\n'):