Do It Yourself - Exercise
Explore how to automate a simple project by writing a Python script that prints current date and time with timezone, then build a Docker container using a Dockerfile. Understand using requirements files with the pytz library, handle Docker image creation, and run containers that execute your script to display accurate timestamps.
We'll cover the following...
We'll cover the following...
In the first exercise, we created a script that will print the current time and then we modified it to print the current date.
In this exercise, we will proceed with that. If you have those files with you, that’s great. If not, don’t worry. You can create it again. So, let’s proceed with a note. ...
Ask