Playing with docker…apt vs apt-get

Was following a docker tutorial where figlet was installed in a ubuntu image by using apt-get install figlet. Evidently I didn’t fully understand the difference between apt and apt-get. Because I typed apt update then apt install figlet and it failed because it wasn’t found. I then tried apt-get install figlet assuming it would fail…but it didn’t…it worked! So as I type this I haven’t googled the difference yet. But I now know there is a difference.