domcas.blogg.se

Debian 10 docker
Debian 10 docker





debian 10 docker

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.

debian 10 docker debian 10 docker

Now, we need to set up and run the image: Now, download the image: docker pull debian:10-slim # Container







Debian 10 docker