{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "56638891", "metadata": {}, "outputs": [], "source": [ "#build\n", "docker build -t miniconda:ouczbs . \n", "docker build -t centos:ouczbs ." ] }, { "cell_type": "code", "execution_count": null, "id": "5b0a7431", "metadata": {}, "outputs": [], "source": [ "#run\n", "docker run -p 80:80 -it gitlab:ouczbs bash\n", "docker run -p 8888:8888 -v /data:/data -d --restart=always miniconda:ouczbs\n", "docker run -p 8888:8888 -it miniconda:ouczbs bash\n", "docker run -p 8888:8888 -it --restart=always miniconda:ouczbs bash\n", "docker run -p 8888:8888 -it --restart=always miniconda:ouczbs source ~/.bashrc\n", " \n", "docker run --detach \\\n", " --name hostname \\\n", " --hostname 175.24.226.114 \\\n", " -p 1443:443 \\\n", " -p 180:80 \\\n", " -p 122:22 \\\n", " -v /home/docker/gitlab/config:/etc/gitlab \\\n", " -v /home/docker/gitlab/logs:/var/log/gitlab \\\n", " -v /home/docker/gitlab/data:/var/opt/gitlab \\\n", " --restart always \\\n", " gitlab/gitlab-ce:latest\n", " \n", "docker run --name jupyter-rust -d -p 8899:8899 -v `pwd`:/opt/notebooks junsuzuki/jupyter-rust" ] }, { "cell_type": "code", "execution_count": null, "id": "4b4f22ab", "metadata": {}, "outputs": [], "source": [ "#rm\n", "docker rm -v $(docker ps -aq -f status=exited)\n", "docker system prune -a\n", "docker images|grep none|awk '{print $3}'|xargs docker rmi " ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.4" } }, "nbformat": 4, "nbformat_minor": 5 }