Skip to main content

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 Fletcher18 Mar 2024
Resolving CVE-2022-48624 less issue
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial to understand that the issue lies within the "less" package, not Nginx itself. The vulnerability affects "less" before version 606, where close_altfile in filename.c in less omits shell_quote calls for LESSCLOSE,...