Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryosk7/my_base_docker_image
僕の最強のDocker image for Docker on Linux。
https://github.com/ryosk7/my_base_docker_image
Last synced: 20 days ago
JSON representation
僕の最強のDocker image for Docker on Linux。
- Host: GitHub
- URL: https://github.com/ryosk7/my_base_docker_image
- Owner: ryosk7
- Created: 2019-04-15T12:05:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T12:21:15.000Z (almost 6 years ago)
- Last Synced: 2024-10-18T19:54:02.053Z (3 months ago)
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ぼくの最強のDocker image だよ!!
## Docker on Linux用
Dockerのコンテナにローカルと同じuserで入れるよ☆### Docker imageをbuild
```sh
#shell
$ docker build -t mybase .
```
### Docker imageを別ファイルに作る
RubyやNodeを好きに入れてイメージを作成
```dockerfile
#Docker file
FROM mybaseCMD ["/bin/bash"]
```
build!!
```sh
#shell
docker build -t myimage .
```
以下のコマンドでDockerのコンテナにローカルユーザーと同じUIDで入る
```sh
#shell
docker run -it -e LOCAL_USER_ID=`id -u $USER` myimage
```
Let's happy Docker!:whale: