Enable docker API on raspberry (debian)

This is note to myself so I don't forget how to enable the docker API on a raspberry. Simple but insecure. Create a docker.service file using: sudo nano /etc/systemd/system/docker.service With the following content: [Service] ExecStart=/usr/bin/dockerd -H=tcp://0.0.0.0:2375 -H=fd:// Then reload the config sudo systemctl daemon-reload And restart the docker sudo systemctl restart docker For security use port 2376 instead of 2375. It also requires you to generate a certificate. See Protect the Docker daemon socket.…

Read more »

Overriding MVC's DefaultControllerFactory

A little while ago I worked on a project that uses Nopcommerce. In this case I did require me to override some of the Controllers. So I went of and defined some Controller is my own namespace. Only to then run into trouble with the DefaultControllerFactory: System.InvalidOperationException: Multiple types were found that match the controller named 'User'. Now why does this happen? Let's start with a little drawing of the situation. The Framework contains two assemblies that have Controllers, one set for the public site and another for the Admin area. The third assembly are Framework customisa…

Read more »

Pimatic and Docker, taking it further

My previous blog explained how to run pimatic using docker on a raspberry pi. This blog will take it a couple of steps further: create a image with plugins installed upload the image to dockerhub for later reuse run the image Docker allows me to get my homeautomation up and running very quickly. I really like how you can have a complete pimatic installation ready to run under docker. Now I can play around and easily switch back to the docker image that just works. However my pimatic images (rpimatic1 and rpimatic2) do not contain any additional plugins. Installation of plugins takes time…

Read more »

Pimatic using Docker on a Raspberry Pi

I'm a great fan of using a Raspberry Pi with pimatic as the heart of my home automation. A really simple hardware platform and a great framework, with a lot of extensions make a good combination. Every now and then I do some experimentation just to discover what the possibilities are. Usually this results in something good. But sometimes I make a mess of it. Unfortunately the pimatic intstallation including configuration and plugins can take some effort and, especially on a Pi 1, some time to install. Docker with a preconfigured pimatic image to the rescue! Install raspbian Skip this If you kn…

Read more »