Docker Community Forums

Share and learn in the Docker community.

Invalid container port error


(John1) #1

Hello,

I have a server with Centos 6.4 on AWS. I followed the instructions at this link for installing docker and it installed ok.

https://docs.docker.com/installation/centos/

I’m trying to install opentsdb using

docker run -d -p 4242:4242petergrace/opentsdb-docker

but I’m getting an error

Invalid containerPort: 4242petergrace

Could anybody advise what is wrong?

Thanks


(Sven Dowideit) #2

you need a space between the port and the name of the image you want to run -

docker run -d -p 4242:4242 petergrace/opentsdb-docker