获取镜像: docker pull ibmcom/websphere-traditional:8.5.5.12-profile docker pull #是将镜像拉取下来的命令,后面跟的是镜像名以及镜像版本信息 ibmcom/websphere-traditional #websphere的镜像名 8.5.5.12-profile #镜像的版本,也就是websphere的版本 2.使用镜像生成容器并且启动容器 : docker run --name websphere -h test -e UPDATE_HOSTNAME=true -p 9043:9043 -p 9443:9443 -d ibmcom/websphere-traditional websphere -e UPDATE_HOSTNAME=true #访问websphere的ip不是localhost时需要此参数 -p 9043:9043 #指定访问端口号 -d ibmcom/websphere-traditional docker run --name test -h test -v $(pwd)/PASSWORD:/tmp/PASSWORD -p 9045:9043 -p 9445:9443 -d ibmcom/websphere-traditional