1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
# Open3D Docker
## Dependencies
### Docker dependencies
- [Install Docker](https://docs.docker.com/get-docker/).
- [Post-installation steps for linux](https://docs.docker.com/engine/install/linux-postinstall/).
Make sure that `docker` can be executed without root privileges.
To verify that Docker is working, run:
```bash
# You should be able to run this without sudo.
docker run --rm hello-world
```
### Nvidia Docker
You don't need to install Nvidia Docker to build CUDA container. You will need
to install Nvidia Docker to run the CUDA container.
- [Install Nvidia Docker](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit).
This is required for testing CUDA builds.
To verify that the Nvidia Docker is working, run:
```bash
docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
```
### ARM64 Docker
You can build and run ARM64 docker. This works on an ARM64 host including Apple
Silicon. However, if your host is x86-64, you will need to install QEMU:
```bash
sudo apt-get --yes install qemu binfmt-support qemu-user-static
# Run the registering scripts
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
```
To verify that the ARM64 environment is working, run:
```bash
# This shall print "aarch64".
# The following warning message is expected: "WARNING: The requested image's
# platform (linux/arm64/v8) does not match the detected host platform
# (linux/amd64) and no specific platform was requested aarch64."
docker run --rm arm64v8/ubuntu:18.04 uname -p
```
## Build and test Docker
For example:
```bash
cd docker
# Build Docker.
./docker_build.sh openblas-amd64-py38-dev
# Test Docker.
./docker_test.sh openblas-amd64-py38-dev
```
See `./docker_build.sh` and `./docker_test.sh` for all available options.
|