aboutsummaryrefslogtreecommitdiff
path: root/transfer.md
blob: 5c1fbc17cc55382162459ae3443747376bac4341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# KPOD Usage Transfer

This document outlines useful information for ops and dev transfer as it relates to infrastructure that utilizes KPOD.

## Operational Transfer

## Abstract

The `crio` daemon is intended to provide the [CRI](https://github.com/kubernetes/community/blob/master/contributors/devel/container-runtime-interface.md) socket needed for Kubernetes to use for automating deployment, scaling, and management of containerized applications (See the document for [configuring kubernetes to use KPOD](./kubernetes.md) for more information on that).
Therefore the `crioctl` command line is a client that interfaces to the same grpc socket as the kubernetes daemon would, for talking to the `crio` daemon.
In many ways `crioctl` is only as feature rich as the Kubernetes CRI requires.
There are additional tools e.g. `kpod` and [`buildah`](https://github.com/projectatomic/buildah) that provide a feature rich set of commands for all operational needs in a Kubernetes environment.


## System Tools

Many traditional tools will still be useful, such as `pstree`, `nsenter` and `lsns`.
As well as some systemd helpers like `systemd-cgls` and `systemd-cgtop` are still just as applicable.

## Equivalents

For many troubleshooting and information collection steps, there may be an existing pattern.
Following provides equivalent with KPOD tools for gathering information or jumping into containers, for operational use.

| Existing Step | KPOD (and friends) |
| :---: | :---: |
| `docker exec` | [`kpod exec`](./docs/kpod-exec.1.md) |
| `docker info` | [`kpod info`](./docs/kpod-info.1.md)  |
| `docker inspect` | [`kpod inspect`](./docs/kpod-inspect.1.md)       |
| `docker logs` | [`kpod logs`](./docs/kpod-logs.1.md)                 |
| `docker ps` | [`kpod ps`](./docs/kpod-ps.1.md) |
| `docker stats` | [`kpod stats`](./docs/kpod-stats.1.md)|

## Development Transfer

There are other equivalents for these tools

| Existing Step | KPOD (and friends) |
| :---: | :---: |
| `docker attach` | [`kpod exec`](./docs/kpod-attach.1.md) ***|
| `docker build`  | [`buildah bud`](https://github.com/projectatomic/buildah/blob/master/docs/buildah-bud.md) |
| `docker commit` | [`buildah commit`](https://github.com/projectatomic/buildah/blob/master/docs/buildah-commit.md) |
| `docker cp`     | [`kpod mount`](./docs/kpod-cp.1.md) ****   |
| `docker create` | [`kpod create`](./docs/kpod-create.1.md)  |
| `docker diff`   | [`kpod diff`](./docs/kpod-diff.1.md)      |
| `docker export` | [`kpod export`](./docs/kpod-export.1.md)  |
| `docker history`| [`kpod history`](./docs/kpod-history.1.md)|
| `docker images` | [`kpod images`](./docs/kpod-images.1.md)  |
| `docker kill`   | [`kpod kill`](./docs/kpod-kill.1.md)      |
| `docker load`   | [`kpod load`](./docs/kpod-load.1.md)      |
| `docker login`  | [`kpod login`](./docs/kpod-login.1.md)    |
| `docker logout` | [`kpod logout`](./docs/kpod-logout.1.md)  |
| `docker pause`  | [`kpod pause`](./docs/kpod-pause.1.md)    |
| `docker ps`     | [`kpod ps`](./docs/kpod-ps.1.md)          |
| `docker pull`   | [`kpod pull`](./docs/kpod-pull.1.md)      |
| `docker push`   | [`kpod push`](./docs/kpod-push.1.md)      |
| `docker rm`     | [`kpod rm`](./docs/kpod-rm.1.md)          |
| `docker rmi`    | [`kpod rmi`](./docs/kpod-rmi.1.md)        |
| `docker run`    | [`kpod run`](./docs/kpod-run.1.md)        |
| `docker save`   | [`kpod save`](./docs/kpod-save.1.md)      |
| `docker stop`   | [`kpod stop`](./docs/kpod-stop.1.md)      |
| `docker tag`    | [`kpod tag`](./docs/kpod-tag.1.md)        |
| `docker unpause`| [`kpod unpause`](./docs/kpod-unpause.1.md)|
| `docker version`| [`kpod version`](./docs/kpod-version.1.md)|
| `docker wait`   | [`kpod wait`](./docs/kpod-wait.1.md)   |

*** Use `kpod exec` to enter a container and `kpod logs` to view the output of pid 1 of a container.
**** Use mount to take advantage of the entire linux tool chain rather then just cp.  Read [`here`](./docs/kpod-cp.1.md) for more information.

## Missing commands in kpod

Those Docker commands currently do not have equivalents in `kpod`:

 * `docker container`
 * `docker events`
 * `docker image`
 * `docker network`
 * `docker node`
 * `docker plugin`
 * `docker port`
 * `docker rename`
 * `docker restart`
 * `docker search`
 * `docker secret`
 * `docker service`
 * `docker stack`
 * `docker swarm`
 * `docker system`
 * `docker top`
 * `docker volume`

## Missing commands in Docker

The following kpod commands do not have a Docker equivalent:

* [`kpod mount`](./docs/kpod-mount.1.md)
* [`kpod umount`](./docs/kpod-umount.1.md)