If you are creating a container from an image and like to expose multiple ports (not publish) you can use the following command:
docker create --name
container name
--expose 7000 --expose 7001image name
docker create --name `container name` --expose 7000 --expose 7001 `image name`
Now, when you start this container using the docker start
command, the configured ports above will be exposed.