provides an UBUNTU container with a preinstalled CLI tools such as gcc, python, curl and a SUDO user
934
This image provides an UBUNTU container with a preinstalled CLI tools such as gcc, python, curl,
and a SUDO "administrator" user, so that SSH connections will be to a regular user instead of using root.
Assuming that your user has the docker privileges, here is an example for creating and running the container:
docker run -d -t \
-p 22:22 \
-e SUDO_PASSWD=my_admin_user_password \
--name=MySshSudoContainer mbinunn/ubuntu_22.04_normal_cli_gcc_etc
You should now be able to connect by typing ssh administrator@localhost on your terminal, or via apps like PuTTy.
Note: use mbinunn/ubuntu_22.04_normal_cli_gcc_etc:nophp image tag if you want to avoid the pre-installed PHP-CLI.
SUDO_PASSWD = Initializes the sudo "administrator" user's password
ROOT_PASSWD = Initializes the root password of UBUNTU
After making changes, installing software or changing startup.sh, save your own image by using the following command:
docker commit MySshSudoContainer my_own_ubuntu_22.04_image:v1
See my source code on https://github.com/mbinnun/Dockers/tree/main/ubuntu-22.04-normal-cli-gcc-etc
written my mbinnun.
https://moshe.binnun.me/
https://moshe.binnun.me/%D7%9E%D7%A9%D7%94-%D7%91%D7%9F-%D7%A0%D7%95%D7%9F
Content type
Image
Digest
sha256:02e363f83…
Size
424.3 MB
Last updated
about 3 years ago
docker pull mbinunn/ubuntu_22.04_normal_cli_gcc_etc