-
Download docker mirror:
docker pull ysl2/ysl2:latest
-
Go to the env.
docker run \ -it \ --rm \ -w /root \ ysl2/ysl2:latest \ zsh
-
If you only want to use nvim, try this:
# For example, you want to edit your project `~/.config/nvim`: docker run \ -it \ --rm \ -e PATH=/root/.vocal/_:/root/.vocal:/root/.vocal/nvim-linux64/bin:/root/.vocal/node-v22.11.0-linux-x64/bin:/root/.vocal/go/bin:/root/.cargo/bin:/root/.local/bin:/root/bin:/usr/sbin:/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/root/.vocal/go/gopath/bin: \ -v ~/.config/nvim:/root/myproject \ -w /root/myproject \ ysl2/ysl2:latest \ nvim
-
How to hot update in container:
docker run \ -it \ -v ~/.ssh/id_rsa:/root/.ssh/id_rsa \ -v ~/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub \ -w /root \ ysl2/ysl2:latest \ zsh # Then you can run something like `git pull ...` in `/root/.config/nvim`, `/root/.dotfiles/` and `/root`
-
(For myself) How to push changes to the docker hub:
# Start the container, and modify something docker run -it ysl2/ysl2:v0.1.1 /usr/bin/zsh # Publish changes: docker commit 7b7f9d12db29 ysl2/ysl2:v0.1.2 docker tag ysl2/ysl2:v0.1.2 ysl2/ysl2:latest docker push ysl2/ysl2:v0.1.2 docker push ysl2/ysl2:latest
🐧
Working
Cloud Native Test Development Engineer. Familiar with python, shellscript and neovim. Learning fastapi and golang.
-
Tencent
- Chengdu, China
-
06:13
(UTC +08:00)
Highlights
Pinned Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.