Log in to your accountexport DOCKER_REGISTRY=registry.cn-hangzhou.aliyuncs.com/cqy_test docker login $DOCKER_REGISTRY --username=Xijiao Chen Qingyuan Creating your own imagePull the base image docker pull registry.cn-shanghai.aliyuncs.com/tcc-public/python:3 #Basic image address#https://tianchi.aliyun.com/forum/postDetail?spm=5176.12586973.0.0.176a4127dBw2Xr&postId=67720 Get the image toolkit and modify the dockerfile according to your needs wget http://tianchi-media.oss-cn-beijing.aliyuncs.com/docker-tool/tianchi_docker.zip unzip tianchi_docker.zip Or enter the image modification docker run --gpus all -it registry.cn-shanghai.aliyuncs.com/tcc-public/pytorch:1.4-cuda10.1-py3 /bin/bash #If you need a data set during testing, you can map the local path to the image docker run --gpus all -it -v /tmp:/tcdata registry.cn-shanghai.aliyuncs.com/tcc-public/pytorch:1.4-cuda10.1-py3 /bin/bash pip install *** #Open a new terminal#View the current container (running image) docker ps #Package and generate a new base image docker commit container ID registry.cn-shenzhen.aliyuncs.com/test_for_tianchi/test_for_tianchi_submit:base Finally, execute docker_build.sh or execute step by step: #Build docker build -t registry.cn-shenzhen.aliyuncs.com/test_for_tianchi/test_for_tianchi_submit:1.0 . #Local test nvidia-docker run your_image sh run.sh #Upload docker push registry.cn-shenzhen.aliyuncs.com/test_for_tianchi/test_for_tianchi_submit:1.0 This is the end of this article about the summary of commonly used commands for docker competition submissions. For more related commonly used docker commands, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Why MySQL database avoids NULL as much as possible
>>: JavaScript to implement search data display
After entering the Docker container, if you exit ...
1. What is mycat A completely open source large d...
The purpose of using HTML to mark up content is t...
ENV: [root@centos7 ~]# uname -r 3.10.0-514.el7.x8...
Due to the needs of the project, I plan to study ...
This article shares the specific code for JavaScr...
1. Conclusion Syntax: limit offset, rows Conclusi...
This article example shares the specific code of ...
How to install iso files under Linux system? Inst...
Table of contents Preface start A little thought ...
Table of contents Preface The relationship betwee...
[LeetCode] 176. Second Highest Salary Write a SQL...
1. Create a table using HTML tags: Copy code The ...
Folding display multi-line text component Fold an...
Table of contents 1. Mathematical functions 2. St...