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
Common properties of tables The basic attributes ...
Preface Today, Prince will talk to you about the ...
Table of contents Overview 1. Menu and routing pr...
1. Create a database 2. Create a table 1. Create ...
In Linux, the commands cat, more, and less can al...
{ {}} Get the value, the original content of the ...
<meta http-equiv="X-UA-Compatible" c...
Today, this article introduces some basic concept...
How to create a virtual machine on VMware and ins...
Preface: Vue3.0 implements echarts three-dimensio...
Table of contents sequence 1. Centralized routing...
New Questions Come and go in a hurry. It has been...
This article uses an example to describe the inte...
At this time, you can use overflow:auto; (when the...
I have been making websites for a long time, but I...