This Docker image, based on Ubuntu 20.04, contains the following components:
- LLVM 10.0.1 (Binaries and development headers are installed at
/llvm
; the source code of LLVM can be found at/llvm-src
) - Flex 2.6.4
- Bison 3.5.1
- GCC, G++ 9.3.0
In addition to common files,
/llvm
: Binaries and development headers are installed here/llvm-src
: Source code of LLVM
- Default locale:
zh_CN.UTF-8
/llvm/bin
is included inPATH
vim
,nano
installed by default
- Image: an executable
- Container: a process (but you can stop it and resume it at any time)
docker pull ksqsf/llvm
Consider using USTC Mirrors.
docker run \
--name $NAME \
-v $HOST_DIR:$DOCKER_PATH \
-it ksqsf/llvm
$HOST_DIR
must be absolute. Consider usingrealpath
.- Since
--rm
is not present, after you exit, the container will not be deleted. Check its existence withdocker ps -a
ordocker container ls -a
(it doesn't display stopped containers without-a
).
docker start -ai $NAME