Skip to content

Commit 69dc2a7

Browse files
committed
Docker - Update Section
1 parent 953ab99 commit 69dc2a7

File tree

3 files changed

+164
-1
lines changed

3 files changed

+164
-1
lines changed

docs/technologies/docker/01-getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label : Getting Started
77

88
<SubHeading>Getting Started with Docker, a popular software for creating, deploying, and running applications inside containers</SubHeading>
99

10-
[Docker](https://www.docker.com/) is a platform and set of tools designed to make it easier to create, deploy, and run applications inside containers.
10+
**[Docker](https://www.docker.com/)** is a platform and set of tools designed to make it easier to create, deploy, and run applications inside containers.
1111
Containers are lightweight, standalone, and executable packages that include everything needed to run a piece of software, including the code, runtime, libraries, and system tools.
1212

1313
**Docker** provides a way to package and distribute applications as containers, making them highly portable and consistent across different environments.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title : Install Docker on MacOS
3+
sidebar_label : Install on MacOS
4+
---
5+
6+
# Install Docker on MacOS
7+
8+
<SubHeading>Learn how to install and use Docker on MacOS.</SubHeading>
9+
10+
**Installing [Docker](https://www.docker.com/) on MacOS** involves a few steps, but it's relatively straightforward.
11+
12+
![Install Docker on Windows - Tutorial provided by AppSeed](https://github-production-user-asset-6210df.s3.amazonaws.com/51070104/268558520-a87dbf5e-83a8-4daf-9b10-8417b58c60e1.png)
13+
14+
> Here are the **steps to install Docker on MacOS**:
15+
16+
## **Prerequisites**
17+
18+
- Make sure you have a macOS version that supports Docker Desktop. Check the Docker documentation for the latest macOS requirements.
19+
- You need a Docker Hub account. You can sign up for one at [Docker Hub](https://hub.docker.com/).
20+
21+
## **Download Docker Desktop**
22+
23+
- Go to the Docker Desktop for Mac download page: [Docker Desktop for Mac](https://www.docker.com/products/docker-desktop)
24+
- Click the "Download for Mac" button to start the download.
25+
26+
## **Install Docker Desktop**
27+
28+
- Once the download is complete, open the .dmg file.
29+
- Drag the Docker icon to your Applications folder.
30+
- Start Docker Desktop from your Applications folder.
31+
32+
## **Configure Docker Desktop**
33+
34+
- After starting Docker Desktop, you'll see the Docker whale icon in your macOS menu bar. Click on it.
35+
- Sign in with your Docker Hub account credentials.
36+
37+
## **Enable Kubernetes (Optional)**
38+
39+
- If you plan to work with Kubernetes alongside Docker, you can enable it from the Docker Desktop settings.
40+
41+
## **Test Your Installation**
42+
43+
- Open a terminal (you can use Terminal.app or an alternative like iTerm).
44+
- Run a simple Docker command to verify the installation. For example, you can run:
45+
```sh
46+
docker --version
47+
```
48+
49+
This should display the Docker version installed.
50+
51+
## **Run a Docker Container**
52+
53+
- Test Docker by running a simple container. For example, you can run a basic Nginx web server container:
54+
```sh
55+
docker run -d -p 80:80 nginx
56+
```
57+
58+
This command starts an Nginx container in the background and maps port 80 from the container to port 80 on your macOS machine.
59+
60+
## **Access the Container**
61+
62+
- Open a web browser and navigate to http://localhost to see the default Nginx page. You should be able to access the web server running in your Docker container.
63+
64+
## ✅ In Summary
65+
66+
Explore Docker by running more containers and images. For example, you can try running a MySQL database, a WordPress site, or other applications from Docker Hub.
67+
68+
Docker Hub provides various Docker images that you can use as samples for testing.
69+
70+
That's it! You've **successfully installed Docker on your macOS machine using Docker Desktop**.
71+
72+
You can now start experimenting with containers, building custom images, and using Docker for your development and testing needs.
73+
74+
## ✅ Resources
75+
76+
- 👉 Access [AppSeed](https://appseed.us/) for more starters and support
77+
- 👉 [Deploy Projects on Aws, Azure and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
78+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
79+
- 👉 Build apps with [Django App Generator](https://app-generator.dev/django/) (free service)
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title : Install Docker on Windows
3+
sidebar_label : Install on Windows
4+
---
5+
6+
# Install Docker on Windows
7+
8+
<SubHeading>Learn how to install and use Docker on Windows-based systems.</SubHeading>
9+
10+
**Installing [Docker](https://www.docker.com/) on Windows** involves a few steps, but it's relatively straightforward.
11+
12+
Docker for Windows uses Windows Subsystem for Linux 2 (WSL 2) for its backend.
13+
14+
![Install Docker on Windows - Tutorial provided by AppSeed](https://github-production-user-asset-6210df.s3.amazonaws.com/51070104/268558520-a87dbf5e-83a8-4daf-9b10-8417b58c60e1.png)
15+
16+
> Here's a general guide on **how to install Docker on Windows**:
17+
18+
## **Prerequisites**
19+
20+
- You need a Windows 10 or Windows Server 2019 (or later) machine.
21+
- Ensure that you have Windows Subsystem for Linux (WSL) installed. You can enable it through PowerShell:
22+
23+
```powershell
24+
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
25+
```
26+
27+
## **Enable WSL 2**
28+
29+
Docker Desktop for Windows uses WSL 2 as the backend. To enable it, open PowerShell as an administrator and run:
30+
31+
```powershell
32+
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
33+
```
34+
35+
## **Download Docker Desktop**
36+
37+
Download the Docker Desktop for Windows installer from the Docker website: [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop).
38+
39+
## **Install Docker Desktop**
40+
41+
Run the Docker Desktop installer and follow the installation wizard's instructions. It will install the necessary components, including Docker Engine, WSL 2, and Hyper-V.
42+
43+
## **Configure Docker Desktop**
44+
45+
Once installed, launch Docker Desktop. It will appear in your system tray. You may need to sign in with your Docker ID if you have one.
46+
47+
## **Configure WSL Integration**
48+
49+
Docker Desktop should automatically set up WSL 2 integration. You can configure it further by going to the "Settings" from the system tray icon and selecting "WSL" from the left sidebar. Make sure you have a WSL 2 Linux distribution installed.
50+
51+
## **Test Installation**
52+
53+
Open a PowerShell or Command Prompt and run a simple Docker command to verify the installation. For example, you can run:
54+
55+
```powershell
56+
docker --version
57+
```
58+
59+
This should display the Docker version installed.
60+
61+
## **Run a Docker Container**
62+
63+
Test Docker by running a simple container. For example, you can run a basic Nginx web server container:
64+
65+
```powershell
66+
docker run -d -p 80:80 nginx
67+
```
68+
69+
This command starts an Nginx container in the background and maps port 80 from the container to port 80 on your Windows machine.
70+
71+
## **Access the Container**
72+
73+
Open a web browser and navigate to `http://localhost` to see the default Nginx page. You should be able to access the web server running in your Docker container.
74+
75+
That's it! You've **successfully installed and tested Docker on a Windows machine**.
76+
77+
You can now start exploring Docker further, build your own images, and run various containers for your development and testing needs.
78+
79+
## ✅ Resources
80+
81+
- 👉 Access [AppSeed](https://appseed.us/) for more starters and support
82+
- 👉 [Deploy Projects on Aws, Azure and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
83+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
84+
- 👉 Build apps with [Django App Generator](https://app-generator.dev/django/) (free service)

0 commit comments

Comments
 (0)