Docker-ce For Mac Screen Tty
I am running the Docker CE version 17.09 on a Mac. The overall experience with the default configuration feels so much like running docker on linux, that you’d almost forget that the docker containers are running in their own VM, with its own disks, cpu and memory settings.
Long story short, here is how to watch memory usage, and increase it if necessary. Enter the HyperKit VM to watch memory usage of the docker host Enter this command and press ‘enter’ to enter the HyperKit VM screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty free top etc.
Increase HyperKit memory Click the docker symbol in the menu bar, and select ‘Preferences’ from the docker menu. Then select the ‘Advanced’ tab. Here you will be able to change the amount of memory. Note that this is maximum memory.
The hyperkit vm will not consume that much memory if you do not use it. Finding the right memory setting for HyperKit HyperKit’s memory itself can be monitored by the Mac’s Activity Monitor. If you see that it runs to its maximum, check in the hyperkit itself the memory usage is linux filesystem buffers, or real application usage. In the former case, restart docker. In the latter case, you might need to give HyperKit more or less memory, depending on your actual usage. Background I was hit by a python command reporting a database crash, after switching from docker-compose to docker swarm mode.
The crash looked like a process killed by the OOM killer, but since the setup worked fine in docker-compose mode, I did not immediately suspect memory problems. I watched memory usage on the host with the Mac’s Activity Monitor (wrong, should have accessed the HyperKit VM!) and that did not show excess memory usage. The default settings of HyperKit of 2GB prevented my application from using more memory, and crash instead.
Docker for Mac instead uses virtualization technology that is already part of Mac OS X: HyperVisor. Docker for Windows uses Microsoft’s virtualization technology, Hyper-V. Search not working in outlook mac. These changes aim to make your Docker containers run faster than before, take up less disk space, and fit better into your operating system.
When working in 'dev mode' with my containers, I generally pass -it to docker run and fire up tmux (i.e. When it seems useful to me to do so).
It would be extremely useful (to me) to be able to fire up tmux in the context of exec -it, regardless of whether -it had been passed to run. At present, since the environment provided by exec is not a tty – even when invoked with -it flags (a pseudo-TTY is not actually allocated, apparently) – it's not possible to use it in this way. At the very least, perhaps the --help output of exec ought to be amended to indicate that its -it mode has limitations relative to run -it. In other words, if this is a bug, it seems like it should be fixed. If it can't be fixed at present, or if it's a foreseen and/or intended limitation of exec, then an indication should be provided in the output of --help. I also use docker for my development environment.
This is why i run tmux inside a container. On Thu, Feb 5, 2015 at 1:04 PM, Michael Bradley wrote: when working in 'dev mode' with my containers, I generally pass -it to docker run and fire up tmux (i.e. When it seems useful to me to do so). It would be extremely useful (to me) to be able to fire up tmux in the context of exec -it, regardless of whether -it had been passed to run. At present, since the environment provided by exec is not a tty – even when invoked with -it flags (a pseudo-TTY is not actually allocated, apparently) – it's not possible to use it in this way.
At the very least, perhaps the --help output of exec ought to be amended to indicate that it's -it option has limitations relative to run -it. — Reply to this email directly or view it on GitHub.