I can't install Rancher

Server Ubuntu 14.04

$ which curl
$ sudo apt-get update
$ sudo apt-get install curl
$ curl -sSL https://get.docker.com/ | sh
$ sudo docker run hello-world

sudo docker run -d --restart=always -p 8080:8080 rancher/server

WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
Error response from daemon: Cannot start container 5ad230bc9af42a5e6a420037c0eb0643d1675ef9e11852e7dc3de653bf632e9d: Bind for failed: port is already allocated

Why not start a container?
Help, please

Port 8080 is already in use by something on your computer. Change the first 8080 in the command to another port, or stop what is currently running on that port (netstat -anp | grep 8080.*LISTEN will tell you what process it is…)

root@vmi46165:~# netstat -anp | grep 8080.LISTEN
tcp6 0 0 :::8080 :::
LISTEN 7595/docker-proxy

sudo docker run -d --restart=always -p 8081:8081 rancher/server

start, thanks

The 2nd number still needs to be 8080, that is the port the process in the container is listening on.

it is necessary to reinstall the system or can I remove ranchers and install it again?

You can docker rm the rancher/server containers to start over…