- Install Docker desktop
Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException:
solution: install Hyper-V
VSCode
- Install the
Remote - Containers
extension
Angular
sudo apt update
sudo apt install nodejs npm
sudo npm install -g @angular/cli@10.2.3
ng serve
2nd Attempt
found this
Image
– docker pull debian:10-slim
Container
– docker run --name debian-buster-slim -h 10-slim -e LANG=C.UTF-8 -it debian:10-slim /bin/bash -l
Environment
– apt update && apt upgrade --yes && apt install sudo locales --yes
– dpkg-reconfigure tzdata
User
– 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
Connect
– 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 https://github.com/docker/getting-started.git
- This got me to step 2 – Build where I have hit the certificate error again!
An unexpected error occurred: “https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz: 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