- log in to DTR from local client
docker login <dtr-url>
- (optional) create a volume to hold our old images
docker volume create registry
cp -r /path/to/registry/backup/_data /var/lib/docker/volumes/registry/.
{ lib, config, options, pkgs, ... }: | |
with lib; | |
let cfg = config.services.chrome-remote-desktop; | |
in { | |
options.services.chrome-remote-desktop = { | |
enable = mkEnableOption "Chrome Remote Desktop"; | |
user = mkOption { | |
type = types.str; | |
description = '' | |
A user which the service will run as. |
<# | |
.SYNOPSIS | |
Utility captures information while attempting to run test container | |
.PARAMETER ContainerName | |
Name of the container to create | |
.PARAMETER ContainerName | |
Name of the container image to run | |
.PARAMETER WaitForContainerStartSec | |
Number of seconds script should wait for container to start before capturing results |
#!/data/data/com.termux/files/usr/bin/python3 | |
import ipaddress | |
import os | |
import socket | |
import socketserver | |
import struct | |
# version, type, key_len | |
request_header = struct.Struct("<III") |
$lockedFiles = "kubelet.err.log", "kubelet.log", "kubeproxy.log", "kubeproxy.err.log", "containerd.err.log", "containerd.log" | |
$netDebugFiles = "network.txt", "endpoint.txt", "policy.txt", "ip.txt", "ports.txt", "routes.txt", "vfpOutput.txt" | |
$timeStamp = get-date -format 'yyyyMMdd-hhmmss' | |
$zipName = "$env:computername-$($timeStamp)_logs.zip" | |
$paths = get-childitem c:\k\*.log -Exclude $lockedFiles | |
$paths += $lockedFiles | Foreach-Object { Copy-Item "c:\k\$_" . -Passthru } | |
$scm = Get-WinEvent -FilterHashtable @{logname='System';ProviderName='Service Control Manager'} | Where-Object { $_.Message -Like "*docker*" -or $_.Message -Like "*kub*" } | Select-Object -Property TimeCreated, Id, LevelDisplayName, Message |
call plug#begin('~/.local/share/nvim/plugged') | |
" Handles the fzf popups | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
" The LSP client | |
Plug 'autozimu/LanguageClient-neovim', { | |
\ 'branch': 'next', | |
\ 'do': 'bash install.sh', |
docker login <dtr-url>
docker volume create registry
cp -r /path/to/registry/backup/_data /var/lib/docker/volumes/registry/.
## Do this on each swarm-node | |
# store containers attached to the bridge | |
$ gwbridge_users=$(docker network inspect --format '{{range $key, $val := .Containers}} {{$key}}{{end}}' docker_gwbridge | \ | |
$ xargs -d' ' -I {} -n1 docker ps --format {{.Names}} -f id={}) | |
# stop all containers | |
# if you have stacks that restart automatically, remove them via docker stack <stackName> rm | |
$ echo "$gwbridge_users" | xargs docker stop | |
$ docker network rm docker_gwbridge | |
$ docker network disconnect -f docker_gwbridge gateway_ingress-sbox |
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"time" | |
"github.com/docker/swarmkit/api" | |
"github.com/docker/swarmkit/ca" |
This is a guide that details the steps to have in place a duplicate environment to upgrade to, and requires an existing UCP/DTR cluster.
Ensure that new nodes are all confiured with identical firewall rules and that all of the relevant swarm joins are performed.
Ensure you use the correct tag to see what is running, check in docker images