cdで目的のpyファイルのある場所に移動
以下でdoker起動
仮想フォルダと本体のhomeフォルダにマウント
cdで仮想のhomeに移動
sudo docker container run --user=$(id -u $USER):$(id -g $USER) --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --interactive --tty --mount "type=bind,source=$(pwd),target=/home" py-ubuntu:commit bash
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme