Repository navigation
%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEUbuntu-Docker%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/ #15
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEUbuntu-Docker%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/
下面指令执行之前建议先挂个代理 启动一个 Ubuntu 容器 1 2 xhost +;\ podman run -it --net=host -e DISPLAY=$DISPLAY --name=devenv -v /home/hcy/Documents/ubuntu/:/home/devenv/ ubuntu /bin/bash Ubuntu 容器基本设置 1 2 3 4 5 6 7 8 9 apt update;\ apt upgrade -y;\ apt install jq xz-utils curl sudo git apt-transport-https ca-certificates ripgrep vim-tiny -y;\ useradd -m devenv;\ usermod -s /bin/bash devenv;\ sudo sh -c 'echo "devenv ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers';\ sudo chown devenv /home/devenv/;\ sudo chgrp devenv /home/devenv/;\ su devenv 切换到普通用户目录 1 2 3 cd ~;\ pwd;\ touch .
https://hcy-asleep.github.io/%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEUbuntu-Docker%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/
All reactions