Andrew Fletcher published: 10 August 2023 1 minute read
Working in an AWS ec2 environment, my goal is to access the server via terminal.
I initially work to get the instance ID. With this ID, I'm able to connect to the server. When first accessing the environment on the server the steps I take are:
sudo docker ps
ps - refers to the 'process status'
Response
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6a6402c2c0c8 a0094945b64e "docker-php-entrypoi…" 49 minutes ago Up 49 minutes 80/tcp eloquent_swirles
To access the Docker container Id noted above 6a6402c2c0c8, use the following
sudo docker exec -it 6a6402c2c0c8 bash
Related articles
Andrew Fletcher
•
07 Jan 2025
Managing DDEV environment troubleshooting and setting up multiple Drupal projects
DDEV has become a popular tool for local web development, offering a streamlined approach to managing Docker-based environments. However, setting up and managing DDEV projects, particularly with the latest versions of Docker Desktop, can present challenges. This article guides you through resolving...
Andrew Fletcher
•
28 Dec 2024
Optimising file transfers by improving efficiency from cp to rsync
Transferring files between development and production environments is a critical task in the deployment process. However, I continue to come across multiple approaches that scale from awesome automation using pipelines to the basic of direct command line entry. Where the basic approaches rely on...
Andrew Fletcher
•
21 Nov 2024
Docker steps for rebuilding
Docker containers listTo view a list of Docker containers that are currently running, you can use the docker ps command. Open your terminal or command prompt and run the following command:docker psThis command will display a list of running containers, showing information like the container ID,...