New tuto 3 done
This commit is contained in:
parent
5f4880dc50
commit
ba77aca73b
57 changed files with 1026 additions and 137 deletions
|
|
@ -71,3 +71,27 @@ docker container run -it my_nano /bin/bash
|
|||
|
||||
Vous constatez cette fois que vous pouvez lancer `nano`, alors que vous ne
|
||||
pouvez toujours pas le faire dans un conteneur issu d'une image `ubuntu` !
|
||||
|
||||
|
||||
## Scripté ?
|
||||
|
||||
On peut automatiser les étapes ci-dessus avec un script qui ressemblerait à ça :
|
||||
|
||||
<div lang="en-US">
|
||||
```bash
|
||||
docker container run ubuntu apt-get update
|
||||
docker container commit $(docker container ls -lq) my_nano_step-1
|
||||
docker container run my_nano_step-1 apt-get install nano
|
||||
docker container commit $(docker container ls -lq) my_nano
|
||||
```
|
||||
</div>
|
||||
|
||||
On obtiendra de la même manière notre image `my_nano` :
|
||||
|
||||
<div lang="en-US">
|
||||
```bash
|
||||
docker container run -it my_nano /bin/bash
|
||||
```
|
||||
</div>
|
||||
|
||||
Contenant notre éditeur de texte favori.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue