您的位置 首页 docker

docker 镜像调试

docker-compose.yaml

services:
  testcontainer:
    container_name: testcontainer
    image: registry.cn-hangzhou.aliyuncs.com/baimeidashu/bmds:jdk-21-v1.2
    command: ["sh", "-c", "tail -f /etc/hosts"]

 

然后:

docker exec -it testcontainer /bin/bash

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章