chore(docker): send images to remote hosts

This commit is contained in:
Michele Cereda
2024-10-27 13:23:15 +01:00
parent b83473d374
commit e16665b180
2 changed files with 7 additions and 2 deletions

View File

@@ -229,6 +229,9 @@ docker inspect --format='{{index .RepoDigests 0}}' 'node:18-buster'
# Act upon files in volumes.
sudo ls "$(docker volume inspect --format '{{.Mountpoint}}' 'baikal_config')"
sudo vim "$(docker volume inspect --format '{{.Mountpoint}}' 'gitea_config')/app.ini"
# Send images to other nodes with Docker.
docker save 'local/image:latest' | ssh -C 'user@remote.host' docker load
```
</details>
@@ -288,8 +291,7 @@ The docker daemon is configured using the `/etc/docker/daemon.json` file:
```json
{
"default-runtime": "runc",
"dns": ["8.8.8.8", "1.1.1.1"],
"dns": ["8.8.8.8", "1.1.1.1"]
}
```

View File

@@ -16,3 +16,6 @@ docker logs --since '2024-09-09T09:05:00' --until '2024-09-09T10:05:00' 'dblab_s
docker login
docker login -u 'whatever' -p 'glpat-ABC012def345GhI678jKl' 'gitlab.example.org:5050'
aws ecr get-login-password | docker login --username 'AWS' --password-stdin '012345678901.dkr.ecr.eu-west-1.amazonaws.com'
# Send images to remote nodes with Docker.
docker save 'local/image:latest' | ssh -C 'user@remote.host' docker load