Summary of commonly used commands for docker competition submission

Summary of commonly used commands for docker competition submission

Log in to your account

export DOCKER_REGISTRY=registry.cn-hangzhou.aliyuncs.com/cqy_test
docker login $DOCKER_REGISTRY --username=Xijiao Chen Qingyuan

Creating your own image

Pull 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:
  • Restart the Docker service to apply the automatic start and stop command (recommended)
  • Detailed explanation of common commands in Docker repository
  • Summary of common commands in Dockerfile
  • Detailed explanation of running multiple commands in Docker container (supervisor)
  • Detailed explanation of CMD and ENTRYPOINT commands in Dockerfile
  • Execute multiple commands after docker run
  • Docker common command operation method
  • Docker Basics: Detailed Explanation of Dockerfile Commands

<<:  Why MySQL database avoids NULL as much as possible

>>:  JavaScript to implement search data display

Recommend

How to use .htaccess to prohibit a certain IP from accessing the website

Preface For cost considerations, most webmasters ...

WeChat Mini Programs are shared globally via uni-app

In actual use, it is often necessary to share the...

A brief talk about JavaScript Sandbox

Preface: Speaking of sandboxes, our minds may ref...

How to use explain to query SQL execution plan in MySql

The explain command is the primary way to see how...

An article teaches you how to use Vue's watch listener

Table of contents Listener watch Format Set up th...

Pros and Cons of Vite and Vue CLI

There is a new build tool in the Vue ecosystem ca...

Vue.js implements timeline function

This article shares the specific code of Vue.js t...

The rel attribute of the HTML link tag

The <link> tag defines the relationship bet...

Detailed explanation of Vue mixin usage and option merging

Table of contents 1. Use in components 2. Option ...

Dynamically edit data in Layui table row

Table of contents Preface Style Function Descript...

How to get USB scanner data using js

This article shares the specific process of js ob...

Vue uses mockjs to generate simulated data case details

Table of contents Install mockjs in your project ...

Simple example of limit parameter of mysql paging

Two parameters of Mysql paging select * from user...

9 Tips for Web Page Layout

<br />Related articles: 9 practical suggesti...