Skip to content

robertonav20/customized-wsl-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import image as wsl

  1. Running image
docker run -t ubuntu-wsl:1.1.0 bash
  1. Export container as tar file
docker export --output ubuntu-wsl-1.1.0.tar $(docker ps -a --format "{{.Names}}")
  1. Import tar file
wsl --import "Ubuntu-WSL-1.1.0" C:\\Users\\rob\\Ubuntu-WSL-1.1.0 .\\ubuntu-wsl-1.1.0.tar
  1. Install tar file
wsl install -d Ubuntu-WSL-1.1.0

NOTE: all steps can be done with docker Desktop

Build image or pull image

To obtain the image there are 2 ways

  1. Build image
docker build --file Dockerfile . --tag ubuntu-wsl:1.1.0

NOTE: is possible build image starting from own Dockerfile

  1. Pull image
docker pull ghcr.io/robertonav20/customized-wsl-image/ubuntu-wsl:1.1.0

Publish image to github registry

  1. Login Github Registry
echo "YOUR_PASSWORD" | docker login ghcr.io --username YOUR_USERNAME --password-stdin
  1. Push Github Registry
docker tag ubuntu-wsl:1.1.0 ghcr.io/robertonav20/customized-wsl-image/ubuntu-wsl:1.1.0
docker push ghcr.io/robertonav20/customized-wsl-image/ubuntu-wsl:1.1.0
  1. Login Github Registry
echo "YOUR_PASSWORD" | docker login docker.io --username YOUR_USERNAME --password-stdin
  1. Push Docker Registry
docker tag ubuntu-wsl:1.1.0 docker.io/robnav24241/customized-wsl-image:1.1.0
docker push docker.io/robnav24241/customized-wsl-image:1.1.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published