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

Detailed explanation of how to exit Docker container without closing it

After entering the Docker container, if you exit ...

Installation and use of mysql mycat middleware

1. What is mycat A completely open source large d...

Detailed explanation of HTML programming tags and document structure

The purpose of using HTML to mark up content is t...

Detailed explanation of the solution to forget the password in MySQL 5.7

ENV: [root@centos7 ~]# uname -r 3.10.0-514.el7.x8...

Summary of bootstrap learning experience-css style design sharing

Due to the needs of the project, I plan to study ...

JavaScript to achieve simple image switching

This article shares the specific code for JavaScr...

MySQL limit performance analysis and optimization

1. Conclusion Syntax: limit offset, rows Conclusi...

JavaScript Snake Implementation Code

This article example shares the specific code of ...

How to install iso file in Linux system

How to install iso files under Linux system? Inst...

Teach you how to implement Vue3 Reactivity

Table of contents Preface start A little thought ...

How much do you know about JavaScript inheritance?

Table of contents Preface The relationship betwee...

SQL implementation LeetCode (176. Second highest salary)

[LeetCode] 176. Second Highest Salary Write a SQL...

DOM operation table example (DOM creates table)

1. Create a table using HTML tags: Copy code The ...

Vue folding display multi-line text component implementation code

Folding display multi-line text component Fold an...

A brief introduction to MySQL functions

Table of contents 1. Mathematical functions 2. St...