boot2docker

Boot2Docker doesn't recognize “sudo”, “tce-load”

拈花ヽ惹草 提交于 2019-12-10 14:13:51
问题 I'm running Boot2Docker on Windows 7 (64 bit). Boot2Docker is supposed to be based on Tiny Core. I was trying to install docker-compose (a separate issue that I'm still working on), and several help topics (such as How to install docker-compose on Windows) suggested using commands involving both sudo and tce-load . Boot2Docker gives error:command not found when I try to use these commands. I've poked around in the /bin folder and sure enough, neither has a file. Other commands that I can use

How to enable the Docker Remote API on Windows

…衆ロ難τιáo~ 提交于 2019-12-10 13:37:16
问题 I am trying to use the Docker Remote API on a Windows 10 host machine. I am using Chrome's Postman extension to see if I can get results from the docker remote api's endpoints. Here are the endpoints that I've tried: GET http://192.168.99.100:4243/images/json GET http://192.168.99.100:2376/images/json Both returned Connection to server 192.168.99.100 failed (The server is not responding) After a few searches I found out that the Docker Remote API is not enabled by default on Windows. Most of

inotifywait in docker-container doesn't register changes

房东的猫 提交于 2019-12-10 12:49:18
问题 I have a script running inside a docker-container which listens for changes in a directory via inotifywait . The directory is mounted to the host-system via docker -v . For some reason, inotifywait doesn't get triggered when files inside this directory is changed. This is the problematic script-line inotifywait -e create -e modify -e delete -e move /etc/nginx/sites-enabled The container is started like this (via fig) web: build: . ports: - "80:80" volumes: - ./conf:/etc/nginx/sites-enabled

Linking Docker Containers

╄→尐↘猪︶ㄣ 提交于 2019-12-10 11:47:26
问题 I have a nodejs app i'm trying to run in a docker container. My app uses mongodb and redis. I've pulled down both a mongo and redis container and dockerized my app. I started up my mongo and redis containers like: docker run -i -t --name redis -d redis docker run -i -t --name mongo -d mongo Now, I link my nodejs app container to both of these and run the app: docker run -i -t --name myapp --link mongo:mongo --link redis:redis mseay/myapp node /myapp/server.js When I run my app, it fails with

Cannot seem to install Google Cloud Managed VMs

本小妞迷上赌 提交于 2019-12-10 10:28:10
问题 Following Google instructions to install managed VMs, everything seems to work smoothly until I get to this step: gcloud preview app setup-managed-vms The result is the following error: ERROR: (gcloud.preview.app) Invalid choice: 'setup-managed-vms'. I've made sure all the other dependent components are up to date. The environment is: Windows 7 x64 Google Cloud SDK 0.9.56 boot2docker 1.4.1/1.5 (tried both) Is there anything obvious I'm missing trying to get these managed VMs working? 回答1: Yep

how to reconnect to a docker container

不问归期 提交于 2019-12-10 10:03:39
问题 I have a docker container running ubuntu and a simple node express site. I connected to the container as follows docker run -i -t -p 8080:3000 node-express The node app in the container is running with pm2, so it continues once I exit out of the container. CONTAINER ID IMAGE f32de2737e80 node-express:latest Now assume I want to make an update to my app. I assume I need to connect to the container, stop the node app, and make an update, e.g. git pull then restart it. My first question is how

window安装docker(通过Oracle VM VirtualBox)

妖精的绣舞 提交于 2019-12-09 19:46:10
一、下载: 软件DockerToolbox-19.03.1.exe下载: https://github.com/docker/toolbox/releases 国内: https://get.daocloud.io/toolbox/ 最新版boot2docker.iso: https://github.com/boot2docker/boot2docker/releases 二、安装: 已经安装virtualBox和git则勾选掉 安装完,将boot2docker.iso复制到C:\Users\用户名\.docker\machine\cache 三、使用: 选择图标,启动DockerToolbox 第一次运行Docker Quickstart Terminal时会进行Docker环境的初始化,会在VirtualBox中自动创建名字为【default】的linux虚拟机,再此过程中会用到boot2docker.iso镜像文件。默认情况下,启动程序会从GitHub上下载此文件的最新版,但由于文件相对较大且速度不给力,多数情况下会下载失败,造成Docker环境无法启动,如下图: 解决方法: 其实DockerToolbox安装文件自带了boot2docker.iso镜像文件,位于安装目录下(如C:\Program Files\Docker Toolbox) ,将此文件拷至C:\Users

Docker: go get from a private GitHub repo

一个人想着一个人 提交于 2019-12-09 14:43:42
问题 I'm trying to run a container that will expose a golang service from a package that I have on a private GitHub repo. Since I am working with GCE, my starter image is google/debian:wheezy. After installing all the required dependancies and tools, I am running RUN go get github.com/<my_org>/<my_package> where the package is a private repo. I have added my GitHub SSH keys to allow the cloning from the private repo to the docker file: ADD priv/id_rsa /root/.ssh/id_rsa ADD priv/id_rsa.pub /root/

boot2docker on windows missing apt-get / package manager

谁说我不能喝 提交于 2019-12-09 14:20:42
问题 I'm in boot2docker. I'm not entirely sure I understand it completely, but it seems to be needed for a project I'm on. I've ssh'd in, and I tried to do a make on our project, but I got make: not found Then I tried a: apt-get install make And got apt-get: not found Tried googling, but couldn't find anything about that, or any package manager. Any suggestions on how to install anything in boot2docker? EDIT: When I asked this I misunderstood how boot2docker and docker worked hand in hand. There

PyCharm add remote Python interpreter inside the Docker

久未见 提交于 2019-12-09 13:54:19
问题 So I have set up a docker on my laptop. I'm using Boot2Docker so I have one level of indirection to access the docker. In PyCharm, I can set a remote python interpreter via SSH but I'm not sure how to do it for dockers that can only be accessed via Boot2Docker? 回答1: Okay so to answer your question(s): In PyCharm, I can set a remote python interpreter via SSH but I'm not sure how to do it for dockers that can only be accessed via Boot2Docker? You need: To ensure that you have SSH running in