1
00:00:04,310 --> 00:00:09,050
If you are running Mac OS or Windows, you have access to Docker desktop dashboard.

2
00:00:09,080 --> 00:00:12,560
You could click here on this icon and click on dashboard.

3
00:00:12,680 --> 00:00:16,850
And here you should find all containers that are currently running.

4
00:00:16,850 --> 00:00:22,340
And now I see such section as images gallery here and it is expandable.

5
00:00:22,340 --> 00:00:28,040
And basically inside I see all four containers that are running by Docker compose.

6
00:00:28,280 --> 00:00:34,250
Here I see names of those containers like images, gallery, Mongo Express one, images gallery, Mongo

7
00:00:34,280 --> 00:00:35,420
one, and so on.

8
00:00:35,570 --> 00:00:41,990
And also see here corresponding images that were used for start of corresponding container.

9
00:00:42,170 --> 00:00:46,970
For instance, Mongo express is image that was used for start of this container.

10
00:00:47,940 --> 00:00:56,400
Also here, you might find ports that are exposed by specific containers and see that port 8081 is exposed

11
00:00:56,400 --> 00:01:02,160
from the Mongo Express container port 3000 is exposed by front end container.

12
00:01:02,460 --> 00:01:06,630
Also here, you could see shortcuts for each running container.

13
00:01:06,630 --> 00:01:08,520
For instance, open in browser.

14
00:01:08,520 --> 00:01:12,810
Let's click on it and was connected to localhost 3000.

15
00:01:13,170 --> 00:01:16,350
Similarly, you could access for instance Mongo Express.

16
00:01:16,380 --> 00:01:22,350
Let's click on this link open in web browser and you'll see connection to Mongo Express graphical user

17
00:01:22,350 --> 00:01:23,130
interface.

18
00:01:23,130 --> 00:01:25,770
But we will proceed with that in the next lecture.

19
00:01:25,800 --> 00:01:28,950
For now, let me continue with overview of the Docker desktop.

20
00:01:28,950 --> 00:01:36,570
Let's go here and also for each container you have such option as open CLI, and if you click for instance

21
00:01:36,570 --> 00:01:43,710
open for Mongo container, you'll see that Docker will actually open a new shell session.

22
00:01:43,710 --> 00:01:49,180
In such case, Sha shell was used and you already know what this command does.

23
00:01:49,180 --> 00:01:55,270
It actually starts another process in this example bin Sha process in the running container here with

24
00:01:55,270 --> 00:01:57,160
Sha hash of the running container.

25
00:01:57,160 --> 00:02:03,460
And now I'm basically inside of the mongo container and if I list files and folders here, I'll see

26
00:02:03,490 --> 00:02:07,300
multiple folders like dev bin data and so on.

27
00:02:07,450 --> 00:02:11,170
Let's exit from here and go back to the Docker desktop.

28
00:02:11,170 --> 00:02:18,370
Also, you could perform such operations as container stop, container restart and container delete.

29
00:02:18,820 --> 00:02:26,890
Also, if you hover mouse over Images gallery, you are able to see open in editor link and also stop

30
00:02:26,890 --> 00:02:33,310
link that will actually stop all running containers that were started using Docker compose up command.

31
00:02:33,770 --> 00:02:39,440
Also here in this list, you might find containers that you run before and that are exited.

32
00:02:39,440 --> 00:02:41,520
At the moment they are stopped.

33
00:02:41,540 --> 00:02:47,520
And if you want, you could restart each of those containers by clicking on this start button.

34
00:02:47,540 --> 00:02:54,290
Of course you could do that from the CLI as well, but at the moment we don't require such old containers

35
00:02:54,290 --> 00:02:58,170
that we used before and that's why we could simply remove them.

36
00:02:58,190 --> 00:03:05,420
Recap that I used for instance, this container with Frosty Babbage name for some examples and now this

37
00:03:05,420 --> 00:03:06,980
container is exited.

38
00:03:07,130 --> 00:03:08,990
Let's go ahead and delete it.

39
00:03:08,990 --> 00:03:13,430
Click on this delete button, click remove and container was removed.

40
00:03:13,940 --> 00:03:19,160
Actually, it's possible to remove all stopped containers if you want to do so, but also if you need

41
00:03:19,160 --> 00:03:23,570
you could remove them separately by clicking on this delete button like that.

42
00:03:24,170 --> 00:03:27,080
Let me actually remove all stopped containers.

43
00:03:27,080 --> 00:03:29,270
I don't need them at the moment.

44
00:03:32,380 --> 00:03:33,250
Like that.

45
00:03:33,250 --> 00:03:36,970
And now there are only four containers that are currently running.

46
00:03:36,970 --> 00:03:40,960
And you already know that when you enter Docker, compose down command.

47
00:03:40,990 --> 00:03:46,600
Docker compose actually not just stops containers, it also deletes them.

48
00:03:46,840 --> 00:03:51,820
Now let's proceed with overview of the Docker desktop and let's go to next menu item in this images.

49
00:03:51,820 --> 00:03:58,180
And here on this page you might find all images that are present in local cache of the Docker.

50
00:03:58,180 --> 00:04:05,050
And here I see such images as images gallery underscore front end and images gallery underscore API.

51
00:04:05,410 --> 00:04:12,330
And those images were created by Docker Compose when we brought up all our services.

52
00:04:12,340 --> 00:04:17,019
Also see such official images as Mongo and Mongo express.

53
00:04:17,019 --> 00:04:24,190
On this line I see image called images dash gallery dash, front end and that's that image that we created

54
00:04:24,190 --> 00:04:28,720
initially when we built the front end image ourselves.

55
00:04:28,720 --> 00:04:31,360
And now this image is not in use.

56
00:04:31,360 --> 00:04:34,940
And basically it's completely safe to remove such image.

57
00:04:34,940 --> 00:04:40,430
Click on those three dots and select remove like that image was removed.

58
00:04:40,700 --> 00:04:48,140
But notice that there are two images named images Dash Gallery, Dash API and images Dash Gallery underscore

59
00:04:48,140 --> 00:04:48,620
API.

60
00:04:48,890 --> 00:04:52,340
Size of those images is exactly the same.

61
00:04:52,640 --> 00:05:00,110
Also image IDs are exactly the same and actually we build this image ourselves and added such tag to

62
00:05:00,110 --> 00:05:03,620
it before actual configuration of the docker compose.

63
00:05:03,710 --> 00:05:11,870
But afterwards we used Docker compose in order to bring up a container and at that moment of time there

64
00:05:11,870 --> 00:05:20,180
were no changes made in API service and that's why Docker Compose has simply reused existing image,

65
00:05:20,180 --> 00:05:21,080
this one.

66
00:05:21,440 --> 00:05:28,580
And that's why now I see in use here for both those images, images, Gallery API and images gallery

67
00:05:28,580 --> 00:05:30,020
underscore API.

68
00:05:30,410 --> 00:05:34,430
In a nutshell, it is the same image but with different names.

69
00:05:34,550 --> 00:05:37,160
And basically I'm able to remove this image.

70
00:05:37,160 --> 00:05:43,460
I don't need it anymore, but images dash gallery underscore API image will be kept in place.

71
00:05:43,670 --> 00:05:44,480
All right.

72
00:05:44,480 --> 00:05:50,960
Also here you see menu item, remote repositories and here you are able to sign in to the Docker hub

73
00:05:50,960 --> 00:05:57,530
and afterwards you will be able to push your repositories from local docker to remote.

74
00:05:57,980 --> 00:05:59,240
I will not do that for now.

75
00:05:59,240 --> 00:06:02,750
We don't require publishing of the images to Docker Hub.

76
00:06:03,050 --> 00:06:09,440
Also here you see the total size that is occupied by images is around two gigabytes and there are in

77
00:06:09,440 --> 00:06:10,820
total five images.

78
00:06:10,850 --> 00:06:16,730
That's how you could use Docker desktop in order to overview what is happening right now and which containers

79
00:06:16,730 --> 00:06:21,710
are up and running and which image exist locally in your Docker setup.

80
00:06:21,920 --> 00:06:27,230
Also here you could click on Setup Icon and go to configuration of the Docker.

81
00:06:27,230 --> 00:06:33,230
And here in the resources section you might find how many resources are allocated to Docker and by default

82
00:06:33,260 --> 00:06:38,300
two gigabytes of Ram are allocated and that is a limit for all running containers.

83
00:06:38,300 --> 00:06:41,390
Please keep in mind that all containers share.

84
00:06:41,420 --> 00:06:44,660
All those limits will keep them unchanged.

85
00:06:44,690 --> 00:06:50,810
Also, you might find other settings in other sections such as file sharing proxies or network.

86
00:06:50,840 --> 00:06:56,960
You could also go to Docker engine and explore information about Docker engine, go to experimental

87
00:06:56,960 --> 00:06:58,610
features or Kubernetes.

88
00:06:58,850 --> 00:06:59,570
All right.

89
00:06:59,570 --> 00:07:05,030
That's it for a quick overview of the Docker desktop and its relatively convenient way to observe what

90
00:07:05,030 --> 00:07:07,820
is happening right now in Docker on your computer.

91
00:07:07,940 --> 00:07:11,900
All right, let's close this and that's it for Docker Desktop Overview.

92
00:07:11,900 --> 00:07:16,430
And next, let's have a look at the Mongo and Mongo Express containers.

93
00:07:16,430 --> 00:07:18,500
I'll see you guys after the small pause.

