Create encrypted ZFS mirror pool

To create aligned and encrypted ( aes-256-gcm ) ZFS mirror pool, always use /dev/disk/by-id

zpool create -f \ 
  -o ashift=12 \
  -O acltype=posixacl \ 
  -O canmount=on \ 
  -O compression=lz4 \ 
  -O dnodesize=auto \
  -O normalization=formD \
  -O relatime=on \
  -O xattr=sa \
  -O encryption=aes-256-gcm \
  -O keylocation=prompt \
  -O keyformat=passphrase \ 
  -O mountpoint=/data04 \
  data04 mirror \
  /dev/disk/by-id/ata-WDC_WD10EVVS-63M5B0_WD-WCAV5R194657 \
  /dev/disk/by-id/ata-WDC_WD1001FALS-00E8B0_WD-WMATV4554788

Mini Dockerfile with conda

Building mini docker images with conda inside

Mini dockerfile with conda

Dockerfile

FROM ubuntu:18.04

ENTRYPOINT [ "/bin/bash", "-c" ]

RUN apt-get -qq update && apt-get -qq upgrade --no-install-recommends \
    && apt-get -qq -y --no-install-recommends install curl bzip2 \
    && curl -sSLk https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
    && bash /tmp/miniconda.sh -bfp /usr/local \
    && rm -rf /tmp/miniconda.sh \
    && conda install -y python=3 \
    && conda update conda \
    && apt-get -qq -y remove curl bzip2 \
    && apt-get -qq -y autoremove \
    && apt-get autoclean \
    && rm -rf /var/lib/apt/lists/* /var/log/dpkg.log \
    && conda clean --all --yes

ENV PATH /opt/conda/bin:$PATH

Building

docker build --tag minimal .
docker image list