Category: docker

  • Accessing Docker as non-root user on Ubuntu 20.04

    After installing docker on Ubuntu 20.04, in order to run docker commands against the docker daemon, you must add the user to the docker group. If a permissions denied state persists, try logging out and back in again before running additional commands. The most common error message is: If you are using the ubuntu user, […]

  • Using minikube instead of Docker Desktop on Mac OS

    With the recent license changes on Docker Desktop, many users have switched to minikube on Mac. minikube is simple to setup and run, and also gives you kubernetes. Everyone should be using kubernetes. This assumes the user is using brew for package management and that Docker Desktop has been removed. After this installation, docker commands […]

  • My new rails application won’t display the “Yay!” page!

    I was doing some recent environment testing with rails with the same application created on each of OSX, CentOS, and Ubuntu and was surprised when the application gave an error about no root route available, instead of the “Yay!” page: I, [2020-02-12T16:51:06.845723 #46720] INFO — : [8d1ab83a-b4e4-45bf-a734-a6494c4d15c2] Started GET “/” for 127.0.0.1 at 2020-02-12 16:51:06 […]

  • Rails new fails to create all of the content…

    I recently deployed a Rails app on a CentOS 8 container and was surprised to see that the ‘rails new’ command did not create the entire application directory structure that I would expect, ie: [root@607ebc931c48 app]# rails _5.2.3_ new centos_app_2 create create README.md create Rakefile create .ruby-version create config.ru create .gitignore create Gemfile run git […]

  • Running Apache 2 under Ubuntu 16.04 on Docker

    I recently wanted to setup a new Ubuntu 16.04 host running Apache under Docker for some AWS ECS/Fargate testing I was doing and encountered the following error: docker run -p 8085:80 aws-ecr-hello-world:v0.5 [Thu Mar 15 00:11:31.074011 2018] [core:warn] [pid 1] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Thu Mar 15 00:11:31.074576 2018] [core:warn] [pid 1] […]

  • docker run docs confusing – which port?

    I was reviewing the docker docs today in an attempt to get things working on OSX and ran into a conflict when starting a new container running nginx. The docs say to run the following command: > docker run -d -p 80:80 –name webserver nginx That seems pretty straight forward, so I ran the command: […]