2023-03-27 01:56:02 +08:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
|
|
|
alpine:
|
|
|
|
container_name: dev
|
|
|
|
image: alpine:dev
|
|
|
|
build:
|
|
|
|
context: ./alpine
|
|
|
|
hostname: dev
|
|
|
|
volumes:
|
|
|
|
- ${DIR}/alpine/root:/root
|
|
|
|
- ${HOME}/.ssh:/root/host/.ssh
|
|
|
|
networks:
|
|
|
|
- dev
|
|
|
|
command: tail -f /dev/null
|
|
|
|
restart: always
|
|
|
|
super_docker:
|
|
|
|
container_name: super_docker
|
|
|
|
image: justincormack/nsenter1:latest
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- dev
|
|
|
|
command: tail -f /dev/null
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
dev:
|
|
|
|
driver: bridge
|