You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Start the Docker Service: `sudo service docker start`
42
42
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).
44
44
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.
46
46
4.**Run the UserClouds Docker Container**
47
47
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.
49
49
2. Adjust the port mapping (`-p 80:80`) as needed.
50
50
5.**Verify the Deployment**
51
51
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.
53
53
6.**Manual Lifecycle Management**
54
54
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:
55
55
1. Stop the Docker Container: `docker stop userclouds-container`
56
56
2. Restart the Docker Container: `docker start userclouds-container`
57
57
3. Remove the Docker Container: `docker rm userclouds-container`
58
58
4. Remove the Docker Image: `docker rmi name-goes-here`
59
59
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