# dockerLans **Repository Path**: epool/docker-lans ## Basic Information - **Project Name**: dockerLans - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-26 - **Last Updated**: 2024-01-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README here we firstly build the docker environment for bayesflow # Docker Multi-platform Build Method ## 0. Installation of buildx Make sure Docker version is 19.03 or higher. Run `docker buildx install`. Create a virtual environment for building using buildx: `docker buildx create --use --name mybuilder`. You can check the created environments using `docker buildx ls`. ## 1. Build the two images separately ``` docker build -t wanke/bayesflow . ``` Run tests: - note: change the path `$(pwd)` to your custom path ``` docker run -it --rm --gpus all -p 8888:8888 -v $(pwd):/tf/work wanke/bayesflow ``` ``` docker run -it --gpus all -p 8888:8888 --network=host -v D:\05code\01academicProject\52bayesflow_projects\dockerBayesflow:/tf/work wanke/bayesflow ``` # 2. Push Images and Modify Manifest - `docker login` - `docker push wanke/bayesflow` docker run -it --gpus all pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel docker container start 7b1e docker exec -it 7b1e /bin/bash apt update apt install git pip install --upgrade pip pip install pip install --no-cache-dir numba -i https://pypi.tuna.tsinghua.edu.cn/simple pip install --no-cache-dir git+https://gitee.com/epool/ssm-simulators.git -i https://pypi.tuna.tsinghua.edu.cn/simple pip install git+https://github.com/AlexanderFengler/LANfactory pip install jupyter, jupyterlab, notebook, ipywidgets jupyter notebook --generate-config docker exec -it 7b1e jupyter lab --allow-root docker commit 7b1e wanke/lans:latest docker run -it --rm --gpus all -p 8888:8888 -v $(pwd):/work wanke/lans jupyter lab --allow-root --ip=0.0.0.0 --port=8888 docker run -it --gpus all -p 8888:8888 -v D:\05code\01academicProject\52bayesflow_projects\dockerLans:/work wanke/lans jupyter lab --allow-root --ip=0.0.0.0 --port=8888 --notebook-dir=/work frozendict %pip install -U "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html %pip install "jax[cuda12_pip]==0.4.9" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html wget https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda_12.3.0_545.23.06_linux.run sudo sh cuda_12.3.0_545.23.06_linux.run docker run -it --gpus all -p 8888:8888 -v D:\05code\01academicProject\52bayesflow_projects\dockerLans:/work wanke/ssmlans jupyter lab --allow-root --ip=0.0.0.0 --port=8888 --notebook-dir=/work