How to: set up Docker server, set up Visual Studio, start to publish ASP.NET to Docker?

Hello. I’m a poor little developer and all I want is to set up an Ubuntu server with only ssh, mc and Docker installed. And then to be able to publish containers from Visual Studio and don’t touch the server at all.

So I need:

  1. Install Docker on Ubuntu - plenty of manuals, for example: hxxp:// For me it ends (I think) at the point he going do “dockerize” something, but okay, at least I have the Docker installed.

  2. Somehow find a way to publish VS projects to Docker. Again, plenty of manuals: hxxp://

(sorry for links - a new user’s limitation)

  1. And the problem is when I finally choose “Publish”, specifying connection and other stuff, it fails checking connection. So, Docker out of the box isn’t ready to receive deployments from VS? What do I need to fill the gap?

Some details:
1.Docker was installed with these exact commands with no further configuration:

sudo apt-key adv --keyserver hkp:// --recv-keys
sudo sh -c “echo deb hxxps:// docker main > /etc/apt/sources.list.d/docker.list”
sudo apt-get update
sudo apt-get install lxc-docker

2.What I’m deploying is ASP.NET 5 beta 7 app, specifying:
•URL: tcp://
•Image: microsoft/aspnet
And leaving other parameters default. What I get is error:

An error occured during publish. The command [docker -H tcp:// build -t microsoft/aspnet -f “C:\Users\adski\AppData\Local\Temp\PublishTemp\DockTest185\approot\src\DockTest1\Dockerfile” “C:\Users\adski\AppData\Local\Temp\PublishTemp\DockTest185”] exited with code [1]: Post hxxp:// dial tcp ConnectEx tcp: No connection could be made because the target machine actively refused it… * Are you trying to connect to a TLS-enabled daemon without TLS? * Is your docker daemon up and running?
Please visit hxxp:// for troubleshooting guide.

Well I’m not really a web-security expert. I’ve found this:

Er, is this really that complicated? But goddamit, none of those Error: | The ASP.NET Site tutorials mentioned that. Guides for dummies, pleeease?