Docker: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
| Line 15: | Line 15: | ||
<pre> | <pre> | ||
docker commit <ContainerID> <imageid:tag> | docker commit <ContainerID> <imageid:tag> | ||
</pre> | |||
=Creating a Docker = | |||
<pre> | |||
apt list | |||
pip freeze | |||
conda freeze >text file | |||
=================================== | |||
=====Docker File=== | |||
FROM ubuntu:24.04 | |||
RUN mkdir /anamoly | |||
WORKDIR /anamoly | |||
COPY list.txt . | |||
RUN apt update -y | |||
RUN apt install python3-pip -y | |||
RUN pip install --break-system-packages -r list.txt | |||
RUN pip install --break-system-packages jupyter | |||
EXPOSE 8005 8006 8501 | |||
ENTRYPOINT ["jupyter-notebook","--port=8501"] | |||
=================== | |||
docker build -t anamoly:V1 . | |||
</pre> | </pre> | ||
Revision as of 08:39, 10 December 2024
Pull and create a container
docker pull arunindiran/biomass:V4 docker run --name biomass -p 8501:8501 arunindiran/biomass:V4 docker run --name biomass -p 8501:8501 -p 8099:8001 arunindiran/biomass:V4
Push to Docker
docker login docker push curioadmin/biomass:V5
Making changes in the Docker
docker commit <ContainerID> <imageid:tag>
Creating a Docker
apt list pip freeze conda freeze >text file =================================== =====Docker File=== FROM ubuntu:24.04 RUN mkdir /anamoly WORKDIR /anamoly COPY list.txt . RUN apt update -y RUN apt install python3-pip -y RUN pip install --break-system-packages -r list.txt RUN pip install --break-system-packages jupyter EXPOSE 8005 8006 8501 ENTRYPOINT ["jupyter-notebook","--port=8501"] =================== docker build -t anamoly:V1 .