Dockerfile
FROM ubuntu
RUN apt-get update && apt-get install -y stress
ENTRYPOINT ["/usr/bin/stress"]
CMD []
运行
docker build -t jack/ubuntu-stress .
docker run -it jack/ubuntu-stress --vm 1 --verbose
FROM ubuntu
RUN apt-get update && apt-get install -y stress
ENTRYPOINT ["/usr/bin/stress"]
CMD []
docker build -t jack/ubuntu-stress .
docker run -it jack/ubuntu-stress --vm 1 --verbose