avatar

Andres Jaimes

Docker cheat-sheet

Posting some common docker commands: docker compose up Starts services (add –build to force rebuild) docker compose down Stops and removes everything (containers, networks) docker compose stop Stops containers but does not remove them docker compose start Restarts containers that were previously stopped docker compose down -v Also removes named/anonymous volumes docker compose down --rmi all Also removes images built by Compose

Installing Rancher on Ubuntu/Docker

On this article we are going to install a rancher server on Ubuntu. Let’s start by getting the rancher image from docker hub: 1sudo docker run -d --restart=always -p 8080:8080 --name=rancher-server rancher/server Go to http://ip-address:8080 and click on Add Host. It is important that you do not use a localhost address (127.0.0.1, localhost). If you do so, and you want to add your local computer as an agent, you will not be able to reach it.