Blame view

container.sh 641 Bytes
3e470988   hmalti   First commit
1
2
  #!/bin/bash
  
5721892d   hmalti   Avancées
3
  case $1 in
3e470988   hmalti   First commit
4
5
6
  
      "create")
          #Si on veut creer un container (qu'on a apellé le script ./baleine.sh container create)
5721892d   hmalti   Avancées
7
          bash create_container.sh "${@:2}"
3e470988   hmalti   First commit
8
9
10
          ;;
      "list")
          #Si on veut lister les containers qui tournent (qu'on a apellé le script ./baleine.sh container list)
5721892d   hmalti   Avancées
11
          bash list_container.sh "${@:2}"
3e470988   hmalti   First commit
12
13
          ;;
      "stop")
5721892d   hmalti   Avancées
14
          bash stop_container.sh "${@:2}"
3e470988   hmalti   First commit
15
          ;;
b1087939   hmalti   Ajout commandes
16
      "remove")
5721892d   hmalti   Avancées
17
          bash remove_container.sh "${@:2}"
b1087939   hmalti   Ajout commandes
18
19
          ;;
      "restart")
5721892d   hmalti   Avancées
20
          bash restart_container.sh "${@:2}"
5161dfdb   hmalti   Améliorations scr...
21
22
          ;;  
      "exec")
5721892d   hmalti   Avancées
23
          bash exec_container.sh "${@:2}"
5161dfdb   hmalti   Améliorations scr...
24
          ;;        
3e470988   hmalti   First commit
25
26
   
  esac