Docker CE is the open-source container platform that lets you package, ship, and run applications in lightweight containers. At GlobalSolutions we have hardened the Docker Community Edition image, pre-configured it for production use, and made it instantly deployable on AWS EC2.
To get started with your Docker CE stack:
.pem key file:chmod 400 your-key.pem
ssh -i your-key.pem ubuntu@<your-ec2-public-ip>
ubuntu — not
Administrator. No password is required; authentication uses your .pem private key.
The Docker CE stack is installed in standard Linux directories for easy access:
| Category | Packages | Version | Location |
|---|---|---|---|
| Container Runtime | Docker Engine – Community | 27.3.1 | /usr/bin/dockerd |
| CLI | docker-ce-cli | 27.3.1 | /usr/bin/docker |
| Container Runtime | containerd.io | latest | /usr/bin/containerd |
No default credentials are required for Docker CE. The service runs under the standard ubuntu system account via the docker group.
Important: Secure the Docker daemon socket and enable TLS if exposing it externally.
To locate your AWS Instance ID from within the Ubuntu instance, run:
curl -s http://169.254.169.254/latest/meta-data/instance-id
Alternatively, log into the AWS Console, select your EC2 instance, and view the Instance ID in the details panel at the bottom of the screen.
The Docker daemon starts automatically on boot. Use the CLI to pull images, run containers, and manage your environment.
docker versiondocker pull hello-worlddocker run hello-worlddocker psdocker ps -adocker stop <container-id>First-Time Setup:
sudo (recommended):
sudo usermod -aG docker $USER
newgrp docker
/etc/docker/daemon.json for storage drivers or logging:
{
"log-driver": "json-file",
"log-opts": { "max-size": "10m", "max-file": "3" },
"storage-driver": "overlay2"
}
sudo systemctl restart docker
sudo systemctl status dockersudo systemctl start dockersudo systemctl stop dockersudo systemctl enable dockerTo enable TLS remote access, update /etc/docker/daemon.json:
{
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2376"],
"tls": true,
"tlscert": "/etc/docker/server-cert.pem",
"tlskey": "/etc/docker/server-key.pem",
"tlscacert": "/etc/docker/ca.pem"
}
For any questions or assistance with our AWS Marketplace offering, reach out to us at support@theglobalsolutions.net.