I am logged in in my PC (Fedora 24) as
rperez
$ docker run -d \
-it \
-e HOST_IP=192.168.1.66 \
-e PHP_ERROR_REPORTING='E_ALL & ~E_STRICT' \
-p 80:80 \
-v ~/var/www:/var/www \
--name php55-dev reypm/php55-dev
$
#
/home/rperez/var/www
root
docker
root
~/var/www
rperez
root
As discussioned here, this is an expected behavior of docker. You can create the target volume directory before running docker command:
chown $(whoami) /path/to/your/dir