Docker – from the beginning

  • Install Docker desktop


solution: install Hyper-V


  • Install the Remote - Containers extension


  • sudo apt update
  • sudo apt install nodejs npm
  • sudo npm install -g @angular/cli@10.2.3
  • ng serve

2nd Attempt

found this

docker pull debian:10-slim
docker run --name debian-buster-slim -h 10-slim -e LANG=C.UTF-8 -it debian:10-slim /bin/bash -l
apt update && apt upgrade --yes && apt install sudo locales --yes
dpkg-reconfigure tzdata
adduser <user_name>
echo "<user_name> ALL=PASSWD: ALL" > /etc/sudoers.d/<user_name>
su - <user_name>
sudo apt install htop git build-essential cmake --yes
Create image
CTRL + D to log out of the container
docker image ls
docker commit debian-buster-slim <username>/<repository>
docker rm debian-buster-slim
Volumes (share local folders)
docker run --name debian-buster-slim -h 10-slim -v <C:\source folder>:</target folder> -it <username>/<repository> /bin/bash
Not sure about the -v syntax yet as this was run more than once
docker exec -it debian-buster-slim /bin/bash -c "su - <user_name>"

1st Attempt

  • Getting started

SSL certificate problem: self signed certificate in certificate chain

solution: include -c http.sslVerify=false as in docker run --name repo alpine/git -c http.sslVerify=false clone

  • This got me to step 2 – Build where I have hit the certificate error again!

An unexpected error occurred: “ self signed certificate in certificate chain”

solution: add RUN yarn config set strict-ssl false before the call to yarn

NOTE: it is bad to disable ssl

  • anther certificate chain error

solution: forget it – getting started doesn’t work inside a secure company network

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.