From 0f26e0e51cc29ee1d082397b5d52a13d10e30ba2 Mon Sep 17 00:00:00 2001 From: Alban Bronisz Date: Mon, 28 Sep 2020 10:49:00 +0200 Subject: [PATCH] Init --- byobu.md | 32 ++++++++++++++++++++++++++++++++ commandes.md | 2 ++ docker.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100755 byobu.md create mode 100755 commandes.md create mode 100755 docker.md diff --git a/byobu.md b/byobu.md new file mode 100755 index 0000000..2de597a --- /dev/null +++ b/byobu.md @@ -0,0 +1,32 @@ + +Create +====== +F2 Create a new tab + +Shift-F2 Split horizontally --- +Ctrl-F2 Split vertically | + + +Move +==== +Alt-←→ Change tab +Alt-↓↑ Change session +Shift-←→↓↑ Change split +Alt-↟↡ Move in history + + +Rename +====== +F8 Rename tab +Ctrl-F8 Rename session + + +Delete +====== +Ctrl-F6 Delete split in focus (delete tab if no split) + + +Other +===== +F6 Detach from session +F1 Help diff --git a/commandes.md b/commandes.md new file mode 100755 index 0000000..4380dcb --- /dev/null +++ b/commandes.md @@ -0,0 +1,2 @@ +convert -resize 50% image.jpg image.jpg + diff --git a/docker.md b/docker.md new file mode 100755 index 0000000..db0368c --- /dev/null +++ b/docker.md @@ -0,0 +1,42 @@ + + +docker build -t project/name . + +Interactif: + + docker run -it project/name bash + + +Connection to an running container: + + docker exec -it project/name bash + + +Inspection de docker +-------------------- +dive project/name (apt install dive) + + + + +docker swarm +------------ + docker swarm init + - see nodes: `docker node ls` + - see token: `docker swarm join-token worker` + + - Start a stack: `docker stack deploy --compose-file docker-compose.yml easymaint` + - See stack: `docker stack services easymaint` + + + - Stop the stack: `docker stack rm easymaint` + + + +docker context +-------------- + + docker context create gulplug --docker "host=ssh://root@51.77.195.234" + docker context ls + docker context use gulplug + docker ps