Docker Community Forums

Share and learn in the Docker community.

Getting Error in Docker when installing MQTT

(Seetx) #1

Hello Everyone,

I am new to Docker and I am not sure if i am asking the question in the correct section.

The question that i have is

I am setting up and Intel Machine with Ubuntu 16 server and installed docker it with portainer as a container
But when i try to install some other containers ie Mosquito MQTT am getting this error

I did try to run it using both sudo and Root but still getting the same errior

The steps taken to install

Created a Volume with the Command
sudo docker volume create mosquitto_data

Steps to install

sudo docker run -itd
–restart on-failure
-p 1883:1883
-p 9001:9001
-v /Users/adrian/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
-v mosquitto_data:/mosquitto/data
-v mosquitto_data:/mosquitto/log

Getting the error

docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused “process_linux.go:359: container init caused “rootfs_linux.go:54: mounting \”/home/seetx/mosquitto/mosquitto.conf\” to rootfs \"/var/lib/docker/aufs/mnt/ed0afa6c729e0d04560ac4ad4b05f4abdea3bceb9552d2b25a416a11e2cd8643\" at \"/var/lib/docker/aufs/mnt/ed0afa6c729e0d04560ac4ad4b05f4abdea3bceb9552d2b25a416a11e2cd8643/mosquitto/config/mosquitto.conf\" caused \“not a directory\”"" : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

Can some one please help me with the issue

Thanks and Regards