ID=$(docker ps -qf ancestor='cmc:latest') docker kill $ID sleep 1 docker run -d -p 127.0.0.1:8888:80 \ --mount type=bind,source=/home/k/projects/cmc-sales/app/webroot/pdf,target=/var/www/cmc-sales/app/webroot/pdf \ --mount type=bind,source=/home/k/projects/cmc-sales/app/webroot/attachments_files,target=/var/www/cmc-sales/app/webroot/attachments_files \ cmc:latest