mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-09 20:57:26 +01:00
doc: dockcross generation should be run with --rm
This commit is contained in:
parent
6f987f4013
commit
aa06b9af2c
12
README.rst
12
README.rst
@ -20,16 +20,16 @@ This image is not intended to be run manually. Instead, there is a helper script
|
||||
|
||||
To install the helper script, run the image with no arguments, and redirect the output to a file::
|
||||
|
||||
docker run CROSS_COMPILER_IMAGE_NAME > dockcross
|
||||
chmod +x dockcross
|
||||
mv dockcross ~/bin/
|
||||
docker run --rm CROSS_COMPILER_IMAGE_NAME > ./dockcross
|
||||
chmod +x ./dockcross
|
||||
mv ./dockcross ~/bin/
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
For the impatient, here's a one-liner to compile a hello world for armv7::
|
||||
|
||||
docker run thewtex/cross-compiler-linux-armv7 > dockcross && chmod +x dockcross && ./dockcross gcc test/C/hello.c -o hello_arm
|
||||
docker run --rm thewtex/cross-compiler-linux-armv7 > ./dockcross && chmod +x ./dockcross && ./dockcross gcc test/C/hello.c -o hello_arm
|
||||
|
||||
Note how invoking any toolchain command (make, gcc, etc...) is just a matter of prepending **dockcross** in the commandline::
|
||||
|
||||
@ -65,12 +65,12 @@ DOCKCROSS_IMAGE / --image <docker-image-name>
|
||||
|
||||
The docker image to run.
|
||||
|
||||
Default: thewtex/cross-compiler-linux-armv7
|
||||
Default: image with which the script was created
|
||||
|
||||
DOCKCROSS_ARGS / --args <docker-run-args>
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Extra arguments to pass to the `docker run` command.
|
||||
Extra arguments to pass to the ``docker run`` command.
|
||||
|
||||
Examples
|
||||
========
|
||||
|
Loading…
Reference in New Issue
Block a user