For platform details read on here.
The image provided hereunder deploys a container with installed Docker and Git to be used as container development environment.
Base of this image builds a tagged version of ubuntu with enabled SSH, a fully featured Docker environment and Git version control system.
The image SSH port 22
needs to be mapped to an unused gateway port, e.g. 22
to be available for remote access.
Only the privileged mode option lifts the enforced container limitations to allow usage of Docker in a container.
Pulling the image from Docker Hub may take up to 5 minutes average.
STEP 1. Open the gateway's landing page under https://<gateways's ip address>
.
STEP 2. Click the Docker tile to open the Portainer.io Docker management user interface.
STEP 3. Enter the following parameters under Containers > Add Container
-
Image:
hilschernetiotedge/netiot-edge-ubuntu-ssh-docker-dev
-
Restart policy:
always
-
Port mapping:
Host: 22 -> Container: 22
-
Runtime > Privileged mode :
On
STEP 4. Press the button Actions > Start container
The container starts the SSH service and the Docker daemon automatically.
Login to it with an SSH client such as putty using the gateway's IP address along with the mapped SSH port. Use the credentials root
as user and root
as password when asked and you are logged in as root.
Use Docker CLI commands as usual.
The image is built from the GitHub project netiot-edge-ubuntu-ssh-docker-dev. It complies with the Dockerfile method to build a Docker image automated.
Hilscher Gesellschaft fuer Systemautomation mbH www.hilscher.com