1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

長いコマンドを簡単に実行してもらう方法

Last updated at Posted at 2020-05-27

コマンドを出力する

docker run --rm tukiyo3/wine32
  • 以下のようにDockerfileの最後のCMDで echo する。
  • Dockerfile
Dockerfile
CMD echo '\
docker run -it \
 --rm \
 --name=wine \
 \
 -e DISPLAY=$DISPLAY \
 -v /tmp/.X11-unix:/tmp/.X11-unix:ro \
 -v $HOME/.Xauthority:/home/wine/.Xauthority \
 \
 -v /run/user/$(id -u)/pulse/native:/run/user/1000/pulse/native \
 -v /dev/snd:/dev/snd --privileged \
 \
 -v $PWD:/c/host/ \
 tukiyo3/wine /bin/bash \
'
  • 出力されたものをそのまま実行する

使用例

docker run --rm tukiyo3/wine32 > w32 && sh w32
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?