Skip to content

Commit 4c647f4

Browse files
author
Heathpackard
authored
Update docker-set-up-guide.mdx (#13)
1 parent ca2dbbb commit 4c647f4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

content/docs/guides/(deployment)/set-up-guides/docker-set-up-guide.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,39 @@ This guide provides step-by-step instructions on deploying the UserClouds Docker
2222
1. **Launch an EC2 Instance**
2323
1. **Log in to the AWS Management Console**
2424
2. **Launch an Instance:**
25-
1. Navigate to EC2 Dashboard and click "Launch Instance"
25+
1. Navigate to EC2 Dashboard and click "Launch Instance".
2626
2. Choose an Amazon Machine Image (AMI). For this guide, we will use the Amazon Linux 2 AMI.
2727
3. Select an instance type. A t2.micro instance is sufficient for testing, but choose according to your needs.
2828
4. Configure other instance details as required.
2929
5. Configure security groups:
3030
1. Allow SSH (port 22) from your IP address.
31-
2. Allow HTTP (port 80) and HTTPS (port 443)
31+
2. Allow HTTP (port 80) and HTTPS (port 443).
3232
3. **Review and Launch:**
33-
1. Review your instance settings and click "Launch"
34-
2. Select an existing key pair or create a new one to access your instance
35-
3. Click "Launch Instances"
33+
1. Review your instance settings and click "Launch".
34+
2. Select an existing key pair or create a new one to access your instance.
35+
3. Click "Launch Instances".
3636
4. **Connect to Your Instance:**
37-
1. Once the instance is running, click "Connect" and follow the instructions to SSH into your instance
37+
1. Once the instance is running, click "Connect" and follow the instructions to SSH into your instance.
3838
2. **Install Docker on the EC2 Instance**
39-
1. Update the Installed Packages: `sudo yum update -y`
40-
2. Install Docker: `sudo amazon-linux-extras install docker -y`
39+
1. Update the Installed Packages: `sudo yum update -y`.
40+
2. Install Docker: `sudo amazon-linux-extras install docker -y`.
4141
3. Start the Docker Service: `sudo service docker start`
4242
4. Add the ec2-user to the Docker Group: `sudo usermod -a -G docker ec2-user`
43-
5. Log Out and Log Back In (to ensure your user permissions are updated)
43+
5. Log Out and Log Back In (to ensure your user permissions are updated).
4444
3. **Pull the UserClouds Docker Image**
45-
1. Reach out to your UserClouds point of contact to obtain the Docker image and any necessary credentials for accessing the Docker registry where the image is hosted
45+
1. Reach out to your UserClouds point of contact to obtain the Docker image and any necessary credentials for accessing the Docker registry where the image is hosted.
4646
4. **Run the UserClouds Docker Container**
4747
1. Run the Docker Container: `docker run -d --name userclouds-container -p 80:80 name-goes-here`
48-
1. Replace `name-goes-here` with the name of the UserClouds Docker image
48+
1. Replace `name-goes-here` with the name of the UserClouds Docker image.
4949
2. Adjust the port mapping (`-p 80:80`) as needed.
5050
5. **Verify the Deployment**
5151
1. Check Running Containers: `docker ps`
52-
2. Access Your Application: Open a web browser and navigate to the public IP address of your EC2 instance. You should see the UserClouds application running
52+
2. Access Your Application: Open a web browser and navigate to the public IP address of your EC2 instance. You should see the UserClouds application running.
5353
6. **Manual Lifecycle Management**
5454
1. Since the Docker container will not automatically restart if the EC2 instance is terminated, you need to manage the lifecycle manually. Here are some commands to help:
5555
1. Stop the Docker Container: `docker stop userclouds-container`
5656
2. Restart the Docker Container: `docker start userclouds-container`
5757
3. Remove the Docker Container: `docker rm userclouds-container`
5858
4. Remove the Docker Image: `docker rmi name-goes-here`
5959

60-
By following these steps, you can successfully deploy and manage the UserClouds Docker container on an EC2 instance. This setup provides flexibility and control over the container lifecycle, although it requires manual intervention for tasks such as restarting the container if the instance is terminated.
60+
By following these steps, you can successfully deploy and manage the UserClouds Docker container on an EC2 instance. This setup provides flexibility and control over the container lifecycle, although it requires manual intervention for tasks, such as restarting the container if the instance is terminated.

0 commit comments

Comments
 (0)