User Tools

Site Tools


Sidebar

Public
Internal
public:it:containers

This is an old revision of the document!


Videos

Nvidia-Docker

Traefik

Min.io

Minimal object store server with S3 compatibility written in GO.

Kubernetes

1. Run this on hypervisor:

curl -sfL https://get.k3s.io | sh -

2. Verify it worked:

k3s kubectl get node

Docs: https://rancher.com/docs/k3s/latest/en/cluster-access/

3. Copy /etc/rancher/k3s/k3s.yaml on the hypervisor to your machine at ~/.kube/config. Then replace “localhost” with the IP or name of your K3s server. kubectl can now manage your K3s cluster.

Docker

Format commands

source

Paste this into ~/.docker/config.json:

{
  "psFormat": "table {{.Names}}\\t{{.Image}}\\t{{.RunningFor}} ago\\t{{.Status}}\\t{{.Command}}",
  "imagesFormat": "table {{.Repository}}\\t{{.Tag}}\\t{{.ID}}\\t{{.Size}}"
}

Podman

Seems to not require mapping UID and GIDs.

Ubuntu 20.10 supports podman install.

If on 20.04 you can add the repo: https://podman.io/getting-started/installation

Rootless Podman basics

  1. On ubuntu 20.04 and earlier install the podman repo.
  2. Install
    apt-get install -y slirp4netns podman
  3. Edit max user name spaces
    $ echo “user.max_user_namespaces=28633” > /etc/sysctl.d/userns.conf 	 
    $ sysctl -p /etc/sysctl.d/userns.conf

Podman Config files Podman to Docker

Docker features that are unsupported in Podman

app container

public/it/containers.1613485281.txt.gz · Last modified: 2021/02/16 08:21 by phil