Docker

Check containers status with ctop

Use Top-like way to check containers information

ta-ching chen

1 minute read

Introduction

It’s not easy to check containers status with top/htop. With ctop, now we can check/display all containers status with top-like interface!

Installation

ctop is developed by Go, all we need to do is download and put binary to the right position, then we can start to monitor containers status! (Support Linux and macOs)

Linux

$ wget https://github.com/bcicen/ctop/releases/download/v0.4.1/ctop-0.4.1-linux-amd64 -O ctop
$ sudo mv ctop /usr/local/bin/
$ sudo chmod +x /usr/local/bin/ctop

Building Minimal Docker Image for Go Applications

Learn how to build tiny docker image for Go from scratch

ta-ching chen

1 minute read

Hello World

Lets create a simple small application that keeps printing out Hello World!

// main.go
package main

import (
    "fmt"
    "time"
)

func main() {
    for {
        fmt.Println("Hello World!")
        time.Sleep(1 * time.Second)
    }
}