天天看點

docker cannot allocate memory記錄一個很簡單的 nexus docker 搭建以下為操作步驟

記錄一個很簡單的 nexus docker 搭建

  • 環境 VM Centsos7
  • 問題 cannot allocate memory
  • 解決 關機重新配置設定VM虛拟機記憶體後解決
    docker cannot allocate memory記錄一個很簡單的 nexus docker 搭建以下為操作步驟

以下為操作步驟

查找鏡像

docker search nexus
           

選取使用次數較多是鏡像 拉取鏡像

docker pull sonatype/nexus3
           

檢視拉取的鏡像

docker images
           

啟動容器

docker run -id --privileged=true --name=nexus3 --restart=always -p 8081:8081 -v /home/nexus-data:/var/nexus-data sonatype/nexus3(這個是容器id或名稱)
           

反複操作

docker stop nexus3
docker rm nexus3