Docker Lab 3
Before
Jika ini lab pertama anda
Jika ini bukan lab pertama andaPractice I
- Search image nginx
- Running image nginx image with the name nginx1 and expose port 8080
- Display a decription of the nginx1 container
- Running an nginx image with the name nginx2 and expose port 8081
- Display container
- Check nginx output on containers
- Accessing the container
- Update and install editor on the container
- edit index.html and move index.html to default directory nginx
- Restart service nginx
- Rerun the container
- Display a description of the container
- Check nginx output on containers
- Display the log content of the container
- DIsplay a description of the container
- Display the live resources used in the container
- Display running process in container
Practice II
- Search image ubuntu on Dockerhub
- Pull image ubuntu from Dockerhub
- Running ubuntu container and access to the console
- Run the ubuntu container and delete it when exiting the container.
Finish
untuk grading lab masukkan perintah
docker-lab-3-grade
Untuk keluar dari lab
exit
kemudian cek di browser
http://89.116.134.157/index.php