Home » Docker

Tag Archives: Docker

Add mTLS to Nginx

Previously we added ssl to an Nginx server. On this example we shall enhance our security by adding mTLS to Nginx. Apart from encrypting the traffic between client and server, SSL is also a way for the client to make sure that the server connecting to, is a trusted source. On the other hand mTLS is a way for the ...

Read More »

Add SSL to Nginx

Nginx is a versatile tool that has many usages, can be used as a reverse proxy, load balancer etc. A common usage is to handle the SSL traffic in front of applications. Thus instead of handling SSL from your application layer you can have nginx in front. In our example we shall generate the certificates and make Nginx do the ...

Read More »

Docker in Windows Moving A Mounting

Using docker in Windows is a bit like discovering that someone’s missed a vital memo. Everything nearly works as you might hope, but there are glitches all over the place. I use bash as my shell for scripting various things we do with docker in Windows. This leads to two enormously annoying issues: I’ve found it very difficult to mount ...

Read More »

Using Minikube on osx

Docker compose is making for me wonders when it comes to run some simple components on my workstation. Spawning and simulating an infrastructure locally is fast and takes no time. Also it is lightweight. However most teams nowadays use Kubernetes.If you want to simulate a Kubernetes environment locally the tool to use is Minikube. With Minikube you need to have ...

Read More »

Kubernetes and Secrets

This is going to be a small post since it has to deal with kubernetes and secrets. Yet it is a very useful once since adding secrets is so common yet so easy to forget (guilty as charged). So we will cover username and password, key/values, file uploading, secrets. Upload username and password using command line. kubectl create secret generic ...

Read More »

Docker Trick: Running Containers Efficiently Using A Bash Script

One of the basic problems with running a docker image is that its too easy to spew up multiple instances or containers of the same image. Consider running the following container for instance: docker run -it -e AWS_ACCESS_KEY_ID="test" -e AWS_SECRET_ACCESS_KEY="test" \ --net=host "prahladyeri/testimage:latest" /bin/bash This will start a fresh container instance from image prahladyeri/testimage:latest and you may optionally pass environment ...

Read More »

Docker is the best thing to happen to Linux since the GNU bread

Its has become an oft-repeated cliche now that docker has become the latest buzzword, both in DevOps circles as well as the open source community. But being the ever cynic and contrarian, I wasn’t quite convinced of its merits until quite recently, I thought it was just another hype that will come and go like all other things. After all, ...

Read More »

Docker | Windows 10/ Mac OS | unauthorized: incorrect username or password when trying to pull images

It happens because the docker client (on macOS or Windos 10) allows you to sign in with your email address and password. If you sign out and sign in with your Docker Username and password everything will work. So here’s a better description of the issue Description When trying to pull images from the Docker registry docker: Error response from daemon: ...

Read More »