fix start script and Dockerfile
This commit is contained in:
parent
ecdd003031
commit
f6f34c735c
@ -24,5 +24,5 @@ EXPOSE 9001/tcp
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
CMD ["/opt/sbin/mosquitto", "-c", "/opt/etc/mosquitto/mosquitto.conf"]
|
||||
CMD ["env", "LD_LIBRARY_PATH=/opt/lib", "/opt/sbin/mosquitto", "-c", "/opt/etc/mosquitto/mosquitto.conf"]
|
||||
|
||||
|
@ -8,12 +8,12 @@ docker volume inspect $VOLUME > /dev/null || docker volume create $VOLUME
|
||||
docker pull $IMAGE
|
||||
|
||||
docker run \
|
||||
-it \
|
||||
-d \
|
||||
--rm \
|
||||
-p1883:1883 \
|
||||
-v $VOLUME:/opt/etc/mosquitto \
|
||||
--link mariadb \
|
||||
--name mosquitto \
|
||||
$IMAGE /bin/bash
|
||||
$IMAGE
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user