https://github.com/orangesi/docker_usage
https://github.com/orangesi/docker_usage
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/orangesi/docker_usage
- Owner: orangeSi
- Created: 2019-10-29T09:42:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T10:27:01.000Z (over 6 years ago)
- Last Synced: 2025-08-24T20:37:35.320Z (11 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## docker_usage
#### 1.open and login to ubuntun
```
docker run -it ubuntu /bin/bash
```
#### 2.go int alpine for crystal
```
docker run -it alpine /bin/ash # and do somethings and exit
docker commit -a myth -m 'install crystal' 7d40949fa189 alpine_crystal # save the change to new local image alpine_crystal
```
or
```
docker commit -a 'myth' -m 'install crystal' 19bc5431d047 ilikeorange/alpine-crystal # save the change to new local image alpine_crystal for push
docker push ilikeorange/alpine-crystal #push the new image to dockerhub
```
#### 3.cp betweent contain and Host
```
docker cp 03d0c69f8ed5:/crystal/rr .
```
#### 4.docker search images by name
```
docker search alpine # can not get alpine-crystal
docker search alpine-crys # can get apline-crystal
```