# Docker TP Pour Julien https://github.com/Octocorn-Learning/Docker ## Exercice 1 faire une image docker avec un container simple "bash" et un script helloWorld.sh 1) ouvrir un terminal et création de l'image à partir d'un container bash ```bash docker pull bash docker run -it bash vi helloworld.sh # ecrire le script chmod +x helloworld.sh ./helloworld.sh ``` 2) dans un autre terminal faire ```bash docker commit xxxxxxx myname/myimage:v1 ``` 3) quitter le premier terminal 4) docker ps 5) docker images 6) docker run -it myname/myimage:v1 7) executer helloworld.sh ## Exercice 2 meme chose en utilisant un Dockerfile ## Exercice 3 : Publier l'image sur dockerhub ## Exercice 4 : Puller l'image sur un nouvel environnement ## Demo Galaxy / Docker Dockerfile : https://github.com/p2m2/p2m2tools/tree/develop/docker XML Galaxy https://github.com/p2m2/p2m2tools/tree/develop/galaxy/docker_env_exemple # USE CASES - JULIEN ## Faire le dockerfile de massql https://github.com/mwang87/MassQueryLanguage ## Dockerfile pour XCMSViewer https://mengchen18.github.io/xcmsViewer/