# Create ImageĪfter we have install all necessary in our Container we could save the Container as a new Image and remove the Container: docker image lsįor using username could have a user in Docker Hub and login in the Host using « docker login» command (read ). Leave for Container CRTL-d until we finish at Host. sudo apt install htop git build-essential cmake -yes ![]() Now we can install some packages for make we development environment. Login and continue setting our Container. ![]() We user should coincide in the Host and Container since if we share volumes we will not have permission problems. Now we need create a user into Container, it user in the Container should coincide with we user in the Host: adduser user_nameĮcho " user_name ALL=PASSWD: ALL" > /etc/sudoers.d/ user_name If we want to change the locale: rm -rf /var/lib/apt/lists/* & localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 Now we can update and install some packages necessary: apt update & apt upgrade -yes & apt install sudo locales -yesĬonfigure datetime zone: dpkg-reconfigure tzdata With the command we obtain the bash shell section in the Container named to debian-buster-slim, with the hostname set to 10-slim and locale to C.UTF-8. docker run -name debian-buster-slim -h 10-slim -e LANG=C.UTF-8 -it debian:10-slim /bin/bash -l If went not download the image before, the debian:10-slim image could be downloaded y create the Container. Now, we need to set up and run the image: ![]() Now, download the image: docker pull debian:10-slim # Container
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |