mysql - docker 1.7 multiple port mapping at run failure -


background:

ubuntu 14.04 lts - docker 1.7 - virtual interface own ip specfically use docker.

running wordpress latest linked mysql 5.7 each own data containers.

i need map ports 80 & 443 wordpress container enforce ssl site wide.

this run string works perfectly:

docker run --name web --link db-server:mysql -d -e wordpress_db_name=wp -e wordpress_db_user=admin -e wordpress_db_password=somepassword -p 172.31.25.94:80:80 --volumes-from wp-data wordpress 

when run string error:

docker run --name web --link db-server:mysql -d -e wordpress_db_name=wp -e wordpress_db_user=admin -e wordpress_db_password=somepassword -p 172.31.25.94:80:80 —p 172.31.25.94:443:443 volumes-from wp-data wordpress:latest 

error message:

unable find image '—p:latest' locally invalid repository name (—p), [a-z0-9-_.] allowed

i have read docker documentation , googled issue , have found should work. there missing or not possible in 1.7?


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -